diff --git a/crates/trie/common/src/utils.rs b/crates/trie/common/src/utils.rs index 024b138fcf..c369c5953c 100644 --- a/crates/trie/common/src/utils.rs +++ b/crates/trie/common/src/utils.rs @@ -71,8 +71,8 @@ where /// 2. We process entries in sorted order during the merge #[inline] fn push_or_update(merged: &mut Vec<(K, V)>, entry: &(K, V)) { - if let Some((last_key, last_value)) = merged.last_mut() - && *last_key == entry.0 + if let Some((last_key, last_value)) = merged.last_mut() && + *last_key == entry.0 { // Duplicate key: overwrite value (last one wins) *last_value = entry.1.clone();