Skip to content

Commit

Permalink
sync: replace Poll::Ready with Ready (#5815)
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Jun 25, 2023
1 parent b8af5aa commit 78bf8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/oneshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ impl<T> Sender<T> {

if state.is_closed() {
coop.made_progress();
return Poll::Ready(());
return Ready(());
}

if state.is_tx_task_set() {
Expand Down

0 comments on commit 78bf8a9

Please sign in to comment.