Ignore clippy::clone_on_copy lint in test

```
warning: using `clone` on type `cache_padded::CachePadded<i32>` 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
```
This commit is contained in:
Taiki Endo 2022-07-17 21:35:10 +09:00
parent 0c1166ed10
commit 8b45665e19
1 changed files with 1 additions and 0 deletions

View File

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