From 6b5db8a6dbdaefd851586e860776aa91b3410198 Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Sat, 13 Jan 2024 00:29:40 -0800 Subject: [PATCH] fix: clippy --- src/merkle/partial_mt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/merkle/partial_mt/mod.rs b/src/merkle/partial_mt/mod.rs index 35af8cd7e..1019fcf5c 100644 --- a/src/merkle/partial_mt/mod.rs +++ b/src/merkle/partial_mt/mod.rs @@ -179,7 +179,7 @@ impl PartialMerkleTree { /// # Errors /// Returns an error if the specified NodeIndex is not contained in the nodes map. pub fn get_node(&self, index: NodeIndex) -> Result { - self.nodes.get(&index).ok_or(MerkleError::NodeNotInSet(index)).map(|hash| *hash) + self.nodes.get(&index).ok_or(MerkleError::NodeNotInSet(index)).copied() } /// Returns true if provided index contains in the leaves set, false otherwise.