diff --git a/fish-rust/src/pointer.rs b/fish-rust/src/pointer.rs index e9ada1634..8d0783235 100644 --- a/fish-rust/src/pointer.rs +++ b/fish-rust/src/pointer.rs @@ -17,10 +17,9 @@ fn default() -> Self { } } -#[allow(clippy::incorrect_clone_impl_on_copy_type)] impl Clone for ConstPointer { fn clone(&self) -> Self { - Self(self.0) + *self } }