From 1bea7a81a97206b9e4bcb96040ad85825e63c7b3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 4 Oct 2025 13:42:29 +0000 Subject: [PATCH] Trivially replace `wake_by_ref` with `wake`. `Waker::wake_by_ref` is allowed to be less efficient than `Waker::wake` and given we have ownership we might as well use the more efficient one. --- lightning/src/util/wakers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/util/wakers.rs b/lightning/src/util/wakers.rs index e7553d9416b..a84d90960d8 100644 --- a/lightning/src/util/wakers.rs +++ b/lightning/src/util/wakers.rs @@ -146,7 +146,7 @@ fn complete_future(this: &Arc>) -> bool { state.callbacks_made = true; } for (_, waker) in state.std_future_callbacks.drain(..) { - waker.0.wake_by_ref(); + waker.0.wake(); } for callback in state.callbacks_with_state.drain(..) { (callback)(this);