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