Skip to content

Commit

Permalink
add Waker::clone_from to channel.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Nov 7, 2023
1 parent dbbd00c commit dd86d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl<T> Stream for LocalReceiver<T> {
} 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
}
Expand Down

0 comments on commit dd86d87

Please sign in to comment.