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> Copy for NodeBackPtr<'_, T> {}
|
||||||
impl<T> Clone 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 {
|
fn clone(&self) -> Self {
|
||||||
use NodeBackPtr::*;
|
*self
|
||||||
|
|
||||||
match self {
|
|
||||||
Head(h) => Head(h),
|
|
||||||
Node(n) => Node(n),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
type WriteAndBackDoublet<'ll, T> = (
|
type WriteAndBackDoublet<'ll, T> = (
|
||||||
|
Reference in New Issue
Block a user