mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-04 02:20:04 +00:00
18 lines
587 B
Text
18 lines
587 B
Text
|
error: cloning a `Waker` only to wake it
|
||
|
--> $DIR/waker_clone_wake.rs:15:5
|
||
|
|
|
||
|
LL | cx.waker().clone().wake();
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `cx.waker().wake_by_ref()`
|
||
|
|
|
||
|
= note: `-D clippy::waker-clone-wake` implied by `-D warnings`
|
||
|
= help: to override `-D warnings` add `#[allow(clippy::waker_clone_wake)]`
|
||
|
|
||
|
error: cloning a `Waker` only to wake it
|
||
|
--> $DIR/waker_clone_wake.rs:17:5
|
||
|
|
|
||
|
LL | mac!(cx).clone().wake();
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `mac!(cx).wake_by_ref()`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|