summaryrefslogtreecommitdiffstats
path: root/vendor/futures-util/src/stream/try_stream/or_else.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/futures-util/src/stream/try_stream/or_else.rs')
-rw-r--r--vendor/futures-util/src/stream/try_stream/or_else.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/futures-util/src/stream/try_stream/or_else.rs b/vendor/futures-util/src/stream/try_stream/or_else.rs
index cb69e8132..53aceb8e6 100644
--- a/vendor/futures-util/src/stream/try_stream/or_else.rs
+++ b/vendor/futures-util/src/stream/try_stream/or_else.rs
@@ -75,7 +75,7 @@ where
}
fn size_hint(&self) -> (usize, Option<usize>) {
- let future_len = if self.future.is_some() { 1 } else { 0 };
+ let future_len = usize::from(self.future.is_some());
let (lower, upper) = self.stream.size_hint();
let lower = lower.saturating_add(future_len);
let upper = match upper {