aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/async_util/condvar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/async_util/condvar.rs b/core/src/async_util/condvar.rs
index 73e76fc..d3bc15b 100644
--- a/core/src/async_util/condvar.rs
+++ b/core/src/async_util/condvar.rs
@@ -135,7 +135,7 @@ impl<'a, T> Future for CondVarAwait<'a, T> {
Some(wk) => {
// This will prevent cloning again
if !wk.will_wake(cx.waker()) {
- *wk = cx.waker().clone();
+ wk.clone_from(cx.waker());
}
Poll::Pending
}