diff --git a/src/pdata/btree.rs b/src/pdata/btree.rs index d22956d..c61fa47 100644 --- a/src/pdata/btree.rs +++ b/src/pdata/btree.rs @@ -147,7 +147,7 @@ pub fn unpack_node( //------------------------------------------ pub trait NodeVisitor { - fn visit(&mut self, w: &BTreeWalker, b: &Block, node: &Node) -> Result<()>; + fn visit(&mut self, node: &Node) -> Result<()>; } #[derive(Clone)] @@ -225,7 +225,7 @@ impl BTreeWalker { } let node = unpack_node::(&b.get_data(), self.ignore_non_fatal, is_root)?; - visitor.visit(self, &b, &node)?; + visitor.visit(&node)?; if let Node::Internal { header: _h, @@ -281,7 +281,7 @@ impl ValueCollector { } impl NodeVisitor for ValueCollector { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { if let Node::Leaf { header: _h, keys, diff --git a/src/thin/check.rs b/src/thin/check.rs index fb5d2db..8d86660 100644 --- a/src/thin/check.rs +++ b/src/thin/check.rs @@ -50,7 +50,7 @@ struct BottomLevelVisitor { //------------------------------------------ impl NodeVisitor for BottomLevelVisitor { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { // FIXME: do other checks if let Node::Leaf { @@ -132,7 +132,7 @@ impl<'a> OverflowChecker<'a> { } impl<'a> NodeVisitor for OverflowChecker<'a> { - fn visit(&mut self, _w: &BTreeWalker, _b: &Block, node: &Node) -> Result<()> { + fn visit(&mut self, node: &Node) -> Result<()> { if let Node::Leaf { header: _h, keys,