Skip to content

Commit 0700d6a

Browse files
authored
io: mark Interest::add with #[must_use] (#6037)
1 parent ca89c5b commit 0700d6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokio/src/io/interest.rs

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ impl Interest {
163163
///
164164
/// assert!(BOTH.is_readable());
165165
/// assert!(BOTH.is_writable());
166+
#[must_use = "this returns the result of the operation, without modifying the original"]
166167
pub const fn add(self, other: Interest) -> Interest {
167168
Self(self.0 | other.0)
168169
}

0 commit comments

Comments
 (0)