Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
polydez committed Dec 23, 2024
1 parent d64d781 commit 70a6383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/merkle/smt/full/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ fn test_prospective_insertion() {
);
assert_eq!(
revert.node_mutations,
smt.inner_nodes.iter().map(|(key, _)| (*key, NodeMutation::Removal)).collect(),
smt.inner_nodes.keys().map(|key| (*key, NodeMutation::Removal)).collect(),
"reverse mutations inner nodes did not match"
);

Expand Down
3 changes: 1 addition & 2 deletions src/merkle/smt/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use alloc::{collections::BTreeMap, vec::Vec};

use num::Integer;
use winter_utils::{ByteReader, ByteWriter, Deserializable, DeserializationError, Serializable};

use super::{EmptySubtreeRoots, InnerNodeInfo, MerkleError, MerklePath, NodeIndex};
Expand Down Expand Up @@ -377,7 +376,7 @@ pub(crate) trait SparseMerkleTree<const DEPTH: u8> {

#[derive(Debug, Default, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub(crate) struct InnerNode {
pub struct InnerNode {
pub left: RpoDigest,
pub right: RpoDigest,
}
Expand Down

0 comments on commit 70a6383

Please sign in to comment.