Skip to content

Commit babd57a

Browse files
committed
fix clippy::len_zero
1 parent 5f5aba4 commit babd57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combinations_with_replacement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ where
6464
// If this is the first iteration, return early
6565
if self.first {
6666
// In empty edge cases, stop iterating immediately
67-
return if self.indices.len() != 0 && !self.pool.get_next() {
67+
return if !(self.indices.is_empty() || self.pool.get_next()) {
6868
None
6969
// Otherwise, yield the initial state
7070
} else {

0 commit comments

Comments
 (0)