Skip to content

Commit 4c0292c

Browse files
committed
Simplify ArrayChunks::is_empty
1 parent 37dfb04 commit 4c0292c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/adapters/array_chunks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,6 @@ where
312312

313313
#[inline]
314314
fn is_empty(&self) -> bool {
315-
self.iter.len() / N == 0
315+
self.iter.len() < N
316316
}
317317
}

0 commit comments

Comments
 (0)