Skip to content
Myr

Ignore redundant_clone lint on test testing clone

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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`

authored by David Tolnay · committed by David Tolnay · parent 867763b · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_chain.rs+1 added
54 unmodified lines
55 assert!(c.next().is_none());56}5758#[test]59#[allow(clippy::redundant_clone)]60fn test_clone() {61 let e = error();62 let mut chain = e.chain().clone();63 assert_eq!("3", chain.next().unwrap().to_string());
6 unmodified lines