Skip to content

Commit 76717e0

Browse files
committed
Fix clippy::assigning_clones warning
1 parent 170a6ee commit 76717e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-util/src/lock/bilock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl<T> BiLock<T> {
102102
// so we need to update that task.
103103
_ => unsafe {
104104
let mut prev = Box::from_raw(n);
105-
*prev = cx.waker().clone();
105+
(*prev).clone_from(cx.waker());
106106
waker = Some(prev);
107107
},
108108
}

0 commit comments

Comments
 (0)