Skip to content

Commit bb04042

Browse files
committed
fix clippy::option_if_let_else
1 parent c69ef49 commit bb04042

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
@@ -123,11 +123,7 @@ where
123123
/// Returns true if iteration has started and has not yet finished; false
124124
/// otherwise.
125125
fn in_progress(&self) -> bool {
126-
if let Some(last) = self.0.last() {
127-
last.in_progress()
128-
} else {
129-
false
130-
}
126+
self.0.last().map_or(false, |last| last.in_progress())
131127
}
132128
}
133129

0 commit comments

Comments
 (0)