summaryrefslogtreecommitdiffstats
path: root/vendor/futures-util/src/stream/try_stream/try_filter_map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/futures-util/src/stream/try_stream/try_filter_map.rs')
-rw-r--r--vendor/futures-util/src/stream/try_stream/try_filter_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/futures-util/src/stream/try_stream/try_filter_map.rs b/vendor/futures-util/src/stream/try_stream/try_filter_map.rs
index bb1b5b9db..ed1201732 100644
--- a/vendor/futures-util/src/stream/try_stream/try_filter_map.rs
+++ b/vendor/futures-util/src/stream/try_stream/try_filter_map.rs
@@ -84,7 +84,7 @@ where
}
fn size_hint(&self) -> (usize, Option<usize>) {
- let pending_len = if self.pending.is_some() { 1 } else { 0 };
+ let pending_len = usize::from(self.pending.is_some());
let (_, upper) = self.stream.size_hint();
let upper = match upper {
Some(x) => x.checked_add(pending_len),