mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Simplify ArrayChunks::is_empty
This commit is contained in:
parent
37dfb04317
commit
4c0292cff5
@ -312,6 +312,6 @@ where
|
||||
|
||||
#[inline]
|
||||
fn is_empty(&self) -> bool {
|
||||
self.iter.len() / N == 0
|
||||
self.iter.len() < N
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user