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:
parent
0c1166ed10
commit
8b45665e19
|
@ -80,6 +80,7 @@ fn drops() {
|
||||||
assert_eq!(count.get(), 2);
|
assert_eq!(count.get(), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::clone_on_copy)] // This is intentional
|
||||||
#[test]
|
#[test]
|
||||||
fn clone() {
|
fn clone() {
|
||||||
let a = CachePadded::new(17);
|
let a = CachePadded::new(17);
|
||||||
|
|
Loading…
Reference in New Issue