Skip to content

Commit af3868e

Browse files
committed
clippy
1 parent 08b7e5e commit af3868e

File tree

1 file changed

+5
-1
lines changed
  • turbopack/crates/turbo-tasks/src

1 file changed

+5
-1
lines changed

turbopack/crates/turbo-tasks/src/util.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,11 @@ pub struct IntoChunks<T> {
332332

333333
impl<T> IntoChunks<T> {
334334
pub fn len(&self) -> usize {
335-
(self.data.len() - self.index + self.chunk_size - 1) / self.chunk_size
335+
(self.data.len() - self.index).div_ceil(self.chunk_size)
336+
}
337+
338+
pub fn is_empty(&self) -> bool {
339+
self.index >= self.data.len()
336340
}
337341
}
338342

0 commit comments

Comments
 (0)