From 8b45665e192adb03c904da20858a8ddf2ebd7bde Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 17 Jul 2022 21:35:10 +0900 Subject: [PATCH] Ignore clippy::clone_on_copy lint in test ``` warning: using `clone` on type `cache_padded::CachePadded` which implements the `Copy` trait --> tests/padding.rs:86:13 | 86 | let b = a.clone(); | ^^^^^^^^^ help: try removing the `clone` call: `a` | = note: `#[warn(clippy::clone_on_copy)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy ``` --- tests/padding.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/padding.rs b/tests/padding.rs index 6125854..d87d887 100644 --- a/tests/padding.rs +++ b/tests/padding.rs @@ -80,6 +80,7 @@ fn drops() { assert_eq!(count.get(), 2); } +#[allow(clippy::clone_on_copy)] // This is intentional #[test] fn clone() { let a = CachePadded::new(17);