Ignore expl_impl_clone_on_copy pedantic clippy lint

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`
This commit is contained in:
David Tolnay 2023-07-02 20:39:32 -07:00
parent 9c8ced9755
commit 0dccfa4597
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 0 deletions

View File

@ -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
)]