From 6f17fe52da88eafae3f6189f3ea8b2634e7f0999 Mon Sep 17 00:00:00 2001 From: Xiangpeng Hao Date: Mon, 12 Feb 2024 10:03:12 -0500 Subject: [PATCH] make clippy happy --- src/base_node.rs | 1 - src/node_16.rs | 4 ---- src/node_256.rs | 4 ---- src/node_4.rs | 4 ---- src/node_48.rs | 4 ---- 5 files changed, 17 deletions(-) diff --git a/src/base_node.rs b/src/base_node.rs index 5d37520..f868869 100644 --- a/src/base_node.rs +++ b/src/base_node.rs @@ -57,7 +57,6 @@ impl NodeType { pub(crate) trait Node { fn base(&self) -> &BaseNode; - fn base_mut(&mut self) -> &mut BaseNode; fn is_full(&self) -> bool; fn insert(&mut self, key: u8, node: NodePtr); fn change(&mut self, key: u8, val: NodePtr) -> NodePtr; diff --git a/src/node_16.rs b/src/node_16.rs index 83bf356..e37ea4f 100644 --- a/src/node_16.rs +++ b/src/node_16.rs @@ -184,10 +184,6 @@ impl Node for Node16 { &self.base } - fn base_mut(&mut self) -> &mut BaseNode { - &mut self.base - } - fn is_full(&self) -> bool { self.base.meta.count == 16 } diff --git a/src/node_256.rs b/src/node_256.rs index 54c2416..9c9bea0 100644 --- a/src/node_256.rs +++ b/src/node_256.rs @@ -97,10 +97,6 @@ impl Node for Node256 { &self.base } - fn base_mut(&mut self) -> &mut BaseNode { - &mut self.base - } - fn is_full(&self) -> bool { false } diff --git a/src/node_4.rs b/src/node_4.rs index af25db0..f5af369 100644 --- a/src/node_4.rs +++ b/src/node_4.rs @@ -92,10 +92,6 @@ impl Node for Node4 { &self.base } - fn base_mut(&mut self) -> &mut BaseNode { - &mut self.base - } - fn is_full(&self) -> bool { self.base.meta.count == 4 } diff --git a/src/node_48.rs b/src/node_48.rs index d6b9a21..8fc2457 100644 --- a/src/node_48.rs +++ b/src/node_48.rs @@ -95,10 +95,6 @@ impl Node for Node48 { &self.base } - fn base_mut(&mut self) -> &mut BaseNode { - &mut self.base - } - fn is_full(&self) -> bool { self.base.meta.count == 48 }