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:95:13
       |
    95 |     #[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 f21c951 commit 2eef58c
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 @@ -92,7 +92,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 2eef58c

Please sign in to comment.