Skip to content

Commit

Permalink
Ignore expl_impl_clone_on_copy pedantic clippy lint
Browse files Browse the repository at this point in the history
    error: you are implementing `Clone` explicitly on a `Copy` type
      --> src/lib.rs:72:1
       |
    72 | / impl Clone for Buffer {
    73 | |     #[inline]
    74 | |     fn clone(&self) -> Self {
    75 | |         Buffer::new()
    76 | |     }
    77 | | }
       | |_^
       |
    note: consider deriving `Clone` or removing `Copy`
      --> src/lib.rs:72:1
       |
    72 | / impl Clone for Buffer {
    73 | |     #[inline]
    74 | |     fn clone(&self) -> Self {
    75 | |         Buffer::new()
    76 | |     }
    77 | | }
       | |_^
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expl_impl_clone_on_copy
       = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D clippy::pedantic`
  • Loading branch information
dtolnay committed Jul 3, 2023
1 parent 9c8ced9 commit 0dccfa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#![allow(
clippy::cast_lossless,
clippy::cast_possible_truncation,
clippy::expl_impl_clone_on_copy,
clippy::must_use_candidate,
clippy::unreadable_literal
)]
Expand Down

0 comments on commit 0dccfa4

Please sign in to comment.