From 1b2c8c01a0ee7063eeb90084d5d25f99d0714b93 Mon Sep 17 00:00:00 2001 From: javalsai Date: Sun, 20 Jul 2025 01:38:44 +0200 Subject: [PATCH] chore: canonical copy impl works --- src/double/node.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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> = (