From 0dccfa45975264cd0e270854d5debca510b74d7f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 2 Jul 2023 20:39:32 -0700 Subject: [PATCH] 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` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 5636691..e560aaa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 )]