io: mark Interest::add with #[must_use] (#6037)

This commit is contained in:
Marek Kuskowski
2023-09-29 16:43:38 +02:00
committed by GitHub
parent ca89c5b2ec
commit 0700d6a7cd
+1
View File
@@ -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)
}