Skip to content

Commit

Permalink
Fix clippy::waker_clone_wake warning (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
tones111 authored Nov 8, 2023
1 parent 0b0fc12 commit 6e1857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions futures-executor/tests/local_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ fn park_unpark_independence() {
return Poll::Ready(());
}
done = true;
cx.waker().clone().wake(); // (*)
// some user-code that temporarily parks the thread
cx.waker().wake_by_ref(); // (*)
// some user-code that temporarily parks the thread
let test = thread::current();
let latch = Arc::new(AtomicBool::new(false));
let signal = latch.clone();
Expand Down

0 comments on commit 6e1857a

Please sign in to comment.