diff --git a/tokio/src/io/interest.rs b/tokio/src/io/interest.rs index cf6d270e0c6..e823910d1b6 100644 --- a/tokio/src/io/interest.rs +++ b/tokio/src/io/interest.rs @@ -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) }