Skip to content

Commit

Permalink
more clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bathtor committed Apr 14, 2023
1 parent e4ffdbd commit 37b8adc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions experiments/datastructures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ impl<V> Default for ByteSliceMap<V> {
}
}

#[derive(Default)]
enum MaybeTree<V> {
#[default]
Empty,
Tree(Box<RadixTree<V>>),
}
Expand Down Expand Up @@ -74,12 +76,6 @@ impl<V> MaybeTree<V> {
}
}

impl<V> Default for MaybeTree<V> {
fn default() -> Self {
MaybeTree::Empty
}
}

enum RadixTree<V> {
Value { key_suffix: Box<[u8]>, value: V },
Node { children: Box<[MaybeTree<V>; 256]> },
Expand Down

0 comments on commit 37b8adc

Please sign in to comment.