mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-09 15:41:30 +01:00
fix: clippy
This commit is contained in:
committed by
Bobbin Threadbare
parent
3ebee98b0f
commit
6b5db8a6db
@@ -179,7 +179,7 @@ impl PartialMerkleTree {
|
|||||||
/// # Errors
|
/// # Errors
|
||||||
/// Returns an error if the specified NodeIndex is not contained in the nodes map.
|
/// Returns an error if the specified NodeIndex is not contained in the nodes map.
|
||||||
pub fn get_node(&self, index: NodeIndex) -> Result<RpoDigest, MerkleError> {
|
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.
|
/// Returns true if provided index contains in the leaves set, false otherwise.
|
||||||
|
|||||||
Reference in New Issue
Block a user