diff options
Diffstat (limited to 'src/stream_ext/then.rs')
-rw-r--r-- | src/stream_ext/then.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_ext/then.rs b/src/stream_ext/then.rs index 7f6b5a2..cc7caa7 100644 --- a/src/stream_ext/then.rs +++ b/src/stream_ext/then.rs @@ -72,7 +72,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); |