Skip to content

Commit 9cf64cf

Browse files
committed
fix clippy::option_if_let_else
1 parent 16d5c41 commit 9cf64cf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/adaptors/multi_product.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ impl<I> MultiProduct<I>
114114
/// Returns true if iteration has started and has not yet finished; false
115115
/// otherwise.
116116
fn in_progress(&self) -> bool {
117-
if let Some(last) = self.0.last() {
118-
last.in_progress()
119-
} else {
120-
false
121-
}
117+
self.0.last().map_or(false, |last| last.in_progress())
122118
}
123119
}
124120

0 commit comments

Comments
 (0)