Skip to content

Commit ceb5fc6

Browse files
committed
Ignore clippy::redundant_clone warning in test
``` warning: redundant clone --> tests/waker_ready.rs:192:25 | 192 | let w2 = get_waker().clone(); | ^^^^^^^^ help: remove this | = note: `#[warn(clippy::redundant_clone)]` on by default note: this value is dropped without further use --> tests/waker_ready.rs:192:14 | 192 | let w2 = get_waker().clone(); | ^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone ```
1 parent b45e15d commit ceb5fc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/waker_ready.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ fn wake_by_ref() {
175175
assert_eq!(chan.len(), 0);
176176
}
177177

178+
#[allow(clippy::redundant_clone)] // This is intentional
178179
#[test]
179180
fn clone() {
180181
future!(f, get_waker, POLL, DROP_F);

0 commit comments

Comments
 (0)