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);
|
type Item = (usize, usize);
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
loop {
|
|
||||||
if let Some(match_idx) = memchr2(b' ', b'\t', self.haystack) {
|
if let Some(match_idx) = memchr2(b' ', b'\t', self.haystack) {
|
||||||
let mut skip = match_idx + 1;
|
let mut skip = match_idx + 1;
|
||||||
while skip < self.haystack.len()
|
while skip < self.haystack.len()
|
||||||
|
@ -42,7 +41,6 @@ impl<'a> Iterator for WhitespaceSearcher<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue