Skip to content

Commit

Permalink
io: mark Interest::add with #[must_use] (#6037)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylonicious committed Sep 29, 2023
1 parent ca89c5b commit 0700d6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tokio/src/io/interest.rs
Expand Up @@ -163,6 +163,7 @@ impl Interest {
///
/// assert!(BOTH.is_readable());
/// assert!(BOTH.is_writable());
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn add(self, other: Interest) -> Interest {
Self(self.0 | other.0)
}
Expand Down

0 comments on commit 0700d6a

Please sign in to comment.