Fix a clippy lint in ConstPointer

This commit is contained in:
ridiculousfish 2023-11-25 19:08:22 -08:00
parent 0f3d4b754f
commit f773697bc1

View file

@ -17,10 +17,9 @@ impl<T> Default for ConstPointer<T> {
}
}
#[allow(clippy::incorrect_clone_impl_on_copy_type)]
impl<T> Clone for ConstPointer<T> {
fn clone(&self) -> Self {
Self(self.0)
*self
}
}