arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
fix: clippy
Bobbin Threadbare bobbinth@protonmail.com
Sat, 13 Jan 2024 00:29:40 -0800
commit

6b5db8a6dbdaefd851586e860776aa91b3410198

parent

3ebee98b0f388321865ea975b6a27be3f62d4275

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

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

@@ -179,7 +179,7 @@ ///

/// # Errors /// Returns an error if the specified NodeIndex is not contained in the nodes map. pub fn get_node(&self, index: NodeIndex) -> Result<RpoDigest, MerkleError> { - 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.