diff --git a/piecrust/src/store.rs b/piecrust/src/store.rs index 43d1d127..2973c71f 100644 --- a/piecrust/src/store.rs +++ b/piecrust/src/store.rs @@ -232,10 +232,9 @@ impl ContractStore { } fn session_with_base(&self, base: Option) -> ContractSession { - let base_commit = base - .and_then(|hash| { - self.commit_store.lock().unwrap().get_commit(&hash).cloned() // todo: clone here - }); + let base_commit = base.and_then(|hash| { + self.commit_store.lock().unwrap().get_commit(&hash).cloned() // todo: clone here + }); ContractSession::new( &self.root_dir, self.engine.clone(),