1
Fork 0
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:
TechHara 2022-12-13 11:18:07 -05:00
parent 188d84b154
commit 866a6d25c8

View file

@ -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()
@ -41,7 +40,6 @@ impl<'a> Iterator for WhitespaceSearcher<'a> {
return None; return None;
} }
} }
}
} }
#[cfg(test)] #[cfg(test)]