diff --git a/src/lib.rs b/src/lib.rs index a7955bb..7d91a59 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -719,7 +719,7 @@ impl Sleepers { for item in &mut self.wakers { if item.0 == id { if !item.1.will_wake(waker) { - item.1 = waker.clone(); + item.1.clone_from(waker); } return false; }