From 6e1857a69b5e2ce195f8d3d8c382cec0236a91a9 Mon Sep 17 00:00:00 2001 From: tones111 Date: Wed, 8 Nov 2023 07:56:43 -0600 Subject: [PATCH] Fix clippy::waker_clone_wake warning (#2798) --- futures-executor/tests/local_pool.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/futures-executor/tests/local_pool.rs b/futures-executor/tests/local_pool.rs index 72ce74b744..fc5d90a491 100644 --- a/futures-executor/tests/local_pool.rs +++ b/futures-executor/tests/local_pool.rs @@ -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();