mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
io: mark Interest::add
with #[must_use]
(#6037)
This commit is contained in:
parent
ca89c5b2ec
commit
0700d6a7cd
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user