Update name of clippy clone impl lint
warning: lint `clippy::incorrect_clone_impl_on_copy_type` has been renamed to `clippy::non_canonical_clone_impl` --> src/lib.rs:76:13 | 76 | #[allow(clippy::incorrect_clone_impl_on_copy_type)] // false positive https://github.com/rust-lang/rust-clippy/issues/11072 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::non_canonical_clone_impl` | = note: `#[warn(renamed_and_removed_lints)]` on by default
This commit is contained in:
parent
633b6ae6b2
commit
e999a5a689
|
@ -73,7 +73,7 @@ impl Copy for Buffer {}
|
||||||
|
|
||||||
impl Clone for Buffer {
|
impl Clone for Buffer {
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(clippy::incorrect_clone_impl_on_copy_type)] // false positive https://github.com/rust-lang/rust-clippy/issues/11072
|
#[allow(clippy::non_canonical_clone_impl)] // false positive https://github.com/rust-lang/rust-clippy/issues/11072
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Buffer::new()
|
Buffer::new()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue