Skip to content

Commit

Permalink
Update name of clippy clone impl lint
Browse files Browse the repository at this point in the history
    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 rust-lang/rust-clippy#11072
       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::non_canonical_clone_impl`
       |
       = note: `#[warn(renamed_and_removed_lints)]` on by default
  • Loading branch information
dtolnay committed Sep 14, 2023
1 parent 633b6ae commit e999a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e999a5a

Please sign in to comment.