Skip to content

Commit ed1327f

Browse files
committed
Ignore redundant_clone lint on test testing clone
error: redundant clone --> tests/test_chain.rs:61:30 | 61 | let mut chain = e.chain().clone(); | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> tests/test_chain.rs:61:21 | 61 | let mut chain = e.chain().clone(); | ^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `-D clippy::redundant-clone` implied by `-D clippy::all`
1 parent 867763b commit ed1327f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_chain.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ fn test_default() {
5656
}
5757

5858
#[test]
59+
#[allow(clippy::redundant_clone)]
5960
fn test_clone() {
6061
let e = error();
6162
let mut chain = e.chain().clone();

0 commit comments

Comments
 (0)