chore: canonical copy impl works
This commit is contained in:
@@ -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> = (
|
||||
|
Reference in New Issue
Block a user