From e999a5a689de980d501e0b5aca6049d63a94d7da Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 13 Sep 2023 22:47:33 -0600 Subject: [PATCH] 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 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0db5995..90cac78 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,7 +73,7 @@ impl Copy for Buffer {} impl Clone for Buffer { #[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 { Buffer::new() }