Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Feb 12, 2024
1 parent ebb3d13 commit 6f17fe5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/base_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions src/node_16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 0 additions & 4 deletions src/node_256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 0 additions & 4 deletions src/node_4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 0 additions & 4 deletions src/node_48.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6f17fe5

Please sign in to comment.