From dd86d87908d31a768864bfb05424aa33f9bed576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Raz=20Guzm=C3=A1n=20Macedo?= Date: Mon, 6 Nov 2023 18:47:42 -0600 Subject: [PATCH] add Waker::clone_from to channel.rs --- src/utils/channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/channel.rs b/src/utils/channel.rs index 9db615e..07081df 100644 --- a/src/utils/channel.rs +++ b/src/utils/channel.rs @@ -32,7 +32,7 @@ impl Stream for LocalReceiver { } else { match &mut channel.waker { Some(prev) => prev.clone_from(cx.waker()), - None => channel.waker = Some(cx.waker().clone()) + None => channel.waker = Some(cx.waker().clone()), } Poll::Pending }