From 345ae961deef1b91b21f3d79e575117c3338cd45 Mon Sep 17 00:00:00 2001 From: fmoletta Date: Thu, 7 Nov 2024 18:50:47 -0300 Subject: [PATCH] remove debug print --- crates/storage/trie/nibbles.rs | 1 - crates/storage/trie/node/extension.rs | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/storage/trie/nibbles.rs b/crates/storage/trie/nibbles.rs index 8036b1090..b36d3b1a5 100644 --- a/crates/storage/trie/nibbles.rs +++ b/crates/storage/trie/nibbles.rs @@ -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 diff --git a/crates/storage/trie/node/extension.rs b/crates/storage/trie/node/extension.rs index 0c608ff51..626c78b5c 100644 --- a/crates/storage/trie/node/extension.rs +++ b/crates/storage/trie/node/extension.rs @@ -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"), };