mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fix clippy complaint
This commit is contained in:
parent
188d84b154
commit
866a6d25c8
1 changed files with 12 additions and 14 deletions
|
@ -25,7 +25,6 @@ impl<'a> Iterator for WhitespaceSearcher<'a> {
|
|||
type Item = (usize, usize);
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
loop {
|
||||
if let Some(match_idx) = memchr2(b' ', b'\t', self.haystack) {
|
||||
let mut skip = match_idx + 1;
|
||||
while skip < self.haystack.len()
|
||||
|
@ -41,7 +40,6 @@ impl<'a> Iterator for WhitespaceSearcher<'a> {
|
|||
return None;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue