aboutsummaryrefslogtreecommitdiff
path: root/src/stream/stream/then.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/stream/then.rs')
-rw-r--r--src/stream/stream/then.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/stream/then.rs b/src/stream/stream/then.rs
index d4531d4..9192c0b 100644
--- a/src/stream/stream/then.rs
+++ b/src/stream/stream/then.rs
@@ -78,7 +78,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 {