mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
io: mark Interest::add with #[must_use] (#6037)
This commit is contained in:
@@ -163,6 +163,7 @@ impl Interest {
|
|||||||
///
|
///
|
||||||
/// assert!(BOTH.is_readable());
|
/// assert!(BOTH.is_readable());
|
||||||
/// assert!(BOTH.is_writable());
|
/// 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 {
|
pub const fn add(self, other: Interest) -> Interest {
|
||||||
Self(self.0 | other.0)
|
Self(self.0 | other.0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user