diff --git a/crates/types/src/traits/storage.rs b/crates/types/src/traits/storage.rs index b52de7c66a..a2ecfdd83a 100644 --- a/crates/types/src/traits/storage.rs +++ b/crates/types/src/traits/storage.rs @@ -103,7 +103,7 @@ pub trait Storage: Send + Sync + Clone { self.update_undecided_state( leaves .iter() - .map(|(&commitment, &ref leaf)| { + .map(|(&commitment, leaf)| { ( Commitment::from_raw(commitment.into()), leaf.clone().to_leaf_unsafe(),