From c06451fa3fb4cd1e7e8fa2456e61b796dad89e0e Mon Sep 17 00:00:00 2001 From: Xiangpeng Hao Date: Wed, 20 Nov 2024 23:30:16 -0600 Subject: [PATCH] happy clippy --- src/tree.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tree.rs b/src/tree.rs index cc0e9ba..342f026 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -33,7 +33,10 @@ impl Default for RawCongee { impl Drop for RawCongee { 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>(self.root) }, + 0, + )]; while let Some((node, level)) = sub_nodes.pop() { let node_lock = BaseNode::read_lock(node).unwrap();