fix some Rust 1.78.0 clippy warnings

This commit is contained in:
Scott Lamb
2024-06-01 06:00:28 -07:00
parent 6c227ec0f5
commit c20c644747
5 changed files with 14 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ fn poll_impl(inner: &Inner, waker_i: &mut usize, cx: &mut Context<'_>) -> Poll<(
} else {
let existing_waker = &mut wakers[*waker_i];
if !new_waker.will_wake(existing_waker) {
*existing_waker = new_waker.clone();
existing_waker.clone_from(new_waker);
}
}
Poll::Pending