mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Fix a clippy lint in ConstPointer
This commit is contained in:
parent
0f3d4b754f
commit
f773697bc1
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue