mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Fix a clippy lint in ConstPointer
This commit is contained in:
@@ -17,10 +17,9 @@ fn default() -> Self {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::incorrect_clone_impl_on_copy_type)]
|
||||
impl<T> Clone for ConstPointer<T> {
|
||||
fn clone(&self) -> Self {
|
||||
Self(self.0)
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user