Skip to content

Commit 6f47f13

Browse files
committed
clippy
1 parent 8fe083d commit 6f47f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portable/src/implementation/portable/algorithm_safe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ where
601601

602602
'outer: loop {
603603
if only_ascii {
604-
while let Some(chunk) = chunks.next() {
604+
for chunk in chunks.by_ref() {
605605
let simd_input = SimdInput::new(chunk);
606606
if !simd_input.is_ascii() {
607607
algorithm.check_block(&simd_input);
@@ -616,7 +616,7 @@ where
616616
idx += SIMD_CHUNK_SIZE;
617617
}
618618
} else {
619-
while let Some(chunk) = chunks.next() {
619+
for chunk in chunks.by_ref() {
620620
let simd_input = SimdInput::new(chunk);
621621
if simd_input.is_ascii() {
622622
algorithm.check_incomplete_pending();

0 commit comments

Comments
 (0)