Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Nov 7, 2024
1 parent 9050b0c commit 345ae96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion crates/storage/trie/nibbles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ impl Nibbles {
self.data.extend_from_slice(other.as_ref());
}


/// Return the nibble at the given index, will panic if the index is out of range
pub fn at(&self, i: usize) -> usize {
self.data[i] as usize
Expand Down
8 changes: 2 additions & 6 deletions crates/storage/trie/node/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,9 @@ mod test {
};

let node = node
.insert(
&mut trie.state,
dbg!(Nibbles::from_bytes(&[0x10])),
vec![0x20],
)
.insert(&mut trie.state, Nibbles::from_bytes(&[0x10]), vec![0x20])
.unwrap();
let node = match dbg!(node) {
let node = match node {
Node::Branch(x) => x,
_ => panic!("expected a branch node"),
};
Expand Down

0 comments on commit 345ae96

Please sign in to comment.