mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 06:30:32 +00:00
17 lines
595 B
Text
17 lines
595 B
Text
error: cloning a `Waker` only to wake it
|
|
--> tests/ui/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
|
|
--> tests/ui/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
|
|
|