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();