arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
refactor: MerkleStore clippy fix
Andrey Khmuro andrey@polygon.technology
Sat, 03 Jun 2023 15:47:27 +0300
commit

43f1a4cb64ff7103b46bf758f1e5479c2d457988

parent

55cc71dadfc5ce801b083e4f274196523cced61c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/merkle/store/mod.rs → src/merkle/store/mod.rs

@@ -404,7 +404,7 @@ // process the node only if it is in the source

if let Some(node) = source.nodes.get(&root) { // if the node has already been inserted, no need to process it further as all of its // descendants should be already cloned from the source store - if matches!(self.nodes.insert(root, *node), None) { + if self.nodes.insert(root, *node).is_none() { self.clone_tree_from(node.left, source); self.clone_tree_from(node.right, source); }