diff --git a/futures-util/src/stream/select_with_strategy.rs b/futures-util/src/stream/select_with_strategy.rs index bd86990cdb..2673a4c2bd 100644 --- a/futures-util/src/stream/select_with_strategy.rs +++ b/futures-util/src/stream/select_with_strategy.rs @@ -16,6 +16,7 @@ pub enum PollNext { impl PollNext { /// Toggle the value and return the old one. + #[must_use] pub fn toggle(&mut self) -> Self { let old = *self;