Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Feb 14, 2024
1 parent 3ebee98 commit 6b5db8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merkle/partial_mt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<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.
Expand Down

0 comments on commit 6b5db8a

Please sign in to comment.