chore: canonical copy impl works

This commit is contained in:
2025-07-20 01:38:44 +02:00
parent af5e5ff19e
commit 1b2c8c01a0

View File

@@ -45,16 +45,8 @@ impl<T> Deref for NodeInner<'_, T> {
impl<T> Copy for NodeBackPtr<'_, T> {}
impl<T> 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> = (