Skip to content

Commit

Permalink
sync: add #[must_use] to Notified (#6828)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoac committed Sep 6, 2024
1 parent bd4ccae commit 5dcc848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/sync/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ impl Drop for NotifyWaitersList<'_> {
/// This future is fused, so once it has completed, any future calls to poll
/// will immediately return `Poll::Ready`.
#[derive(Debug)]
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Notified<'a> {
/// The `Notify` being received on.
notify: &'a Notify,
Expand Down

0 comments on commit 5dcc848

Please sign in to comment.