aboutsummaryrefslogtreecommitdiff
path: root/src/stream/try_stream/try_filter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/try_stream/try_filter.rs')
-rw-r--r--src/stream/try_stream/try_filter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/try_stream/try_filter.rs b/src/stream/try_stream/try_filter.rs
index 61e6105..11d5824 100644
--- a/src/stream/try_stream/try_filter.rs
+++ b/src/stream/try_stream/try_filter.rs
@@ -90,7 +90,7 @@ where
}
fn size_hint(&self) -> (usize, Option<usize>) {
- let pending_len = if self.pending_fut.is_some() { 1 } else { 0 };
+ let pending_len = usize::from(self.pending_fut.is_some());
let (_, upper) = self.stream.size_hint();
let upper = match upper {
Some(x) => x.checked_add(pending_len),