rust-clippy/tests/ui/waker_clone_wake.stderr
Benoît du Garreau ebf6667b57 Apply suggestions
2023-10-25 15:15:29 +02:00

17 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