Skip to content

Commit 6e1857a

Browse files
authored
Fix clippy::waker_clone_wake warning (#2798)
1 parent 0b0fc12 commit 6e1857a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

futures-executor/tests/local_pool.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ fn park_unpark_independence() {
414414
return Poll::Ready(());
415415
}
416416
done = true;
417-
cx.waker().clone().wake(); // (*)
418-
// some user-code that temporarily parks the thread
417+
cx.waker().wake_by_ref(); // (*)
418+
// some user-code that temporarily parks the thread
419419
let test = thread::current();
420420
let latch = Arc::new(AtomicBool::new(false));
421421
let signal = latch.clone();

0 commit comments

Comments
 (0)