2023-10-23 12:41:10 +00:00
|
|
|
error: cloning a `Waker` only to wake it
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/waker_clone_wake.rs:15:5
|
2023-10-23 12:41:10 +00:00
|
|
|
|
|
|
|
|
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)]`
|
|
|
|
|
2023-10-25 13:15:29 +00:00
|
|
|
error: cloning a `Waker` only to wake it
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/waker_clone_wake.rs:17:5
|
2023-10-25 13:15:29 +00:00
|
|
|
|
|
|
|
|
LL | mac!(cx).clone().wake();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `mac!(cx).wake_by_ref()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-10-23 12:41:10 +00:00
|
|
|
|