summaryrefslogtreecommitdiffstats
path: root/vendor/futures-util/src/stream/try_stream/and_then.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/futures-util/src/stream/try_stream/and_then.rs')
-rw-r--r--vendor/futures-util/src/stream/try_stream/and_then.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/futures-util/src/stream/try_stream/and_then.rs b/vendor/futures-util/src/stream/try_stream/and_then.rs
index a7b50db0b..2f8b6f258 100644
--- a/vendor/futures-util/src/stream/try_stream/and_then.rs
+++ b/vendor/futures-util/src/stream/try_stream/and_then.rs
@@ -71,7 +71,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 {