Skip to content

Commit 68d38a5

Browse files
committed
implement clippy suggestions
1 parent 0b0fc12 commit 68d38a5

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)