Skip to content

Commit

Permalink
happy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Nov 21, 2024
1 parent ccdf897 commit c06451f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ impl<const K_LEN: usize> Default for RawCongee<K_LEN> {

impl<const K_LEN: usize, A: Allocator + Clone> Drop for RawCongee<K_LEN, A> {
fn drop(&mut self) {
let mut sub_nodes = vec![(unsafe { std::mem::transmute(self.root) }, 0)];
let mut sub_nodes = vec![(
unsafe { std::mem::transmute::<NonNull<Node256>, NonNull<BaseNode>>(self.root) },
0,
)];

while let Some((node, level)) = sub_nodes.pop() {
let node_lock = BaseNode::read_lock(node).unwrap();
Expand Down

0 comments on commit c06451f

Please sign in to comment.