diff --git a/src/double/node.rs b/src/double/node.rs index b06be14..75f3a20 100644 --- a/src/double/node.rs +++ b/src/double/node.rs @@ -45,16 +45,8 @@ impl Deref for NodeInner<'_, T> { impl Copy for NodeBackPtr<'_, T> {} impl Clone for NodeBackPtr<'_, T> { - // # TODO: check if this works as expected with the cacnonical clone impl as I'm not sure if - // Copy would make it recursive or not - #[allow(clippy::enum_glob_use, clippy::non_canonical_clone_impl)] fn clone(&self) -> Self { - use NodeBackPtr::*; - - match self { - Head(h) => Head(h), - Node(n) => Node(n), - } + *self } } type WriteAndBackDoublet<'ll, T> = (