prefere for loop

This commit is contained in:
Bennet Bleßmann
2025-07-31 21:45:26 +02:00
committed by Bennet Bleßmann
parent df3f1236f7
commit 3365cffa96

View File

@@ -194,7 +194,7 @@ fn pstr_segment_char_count_up_to(
let mut byte_offset = 0; let mut byte_offset = 0;
if max_chars > 0 { if max_chars > 0 {
while let Some(c) = char_iter.next() { for c in &mut char_iter {
if c == '\u{0}' { if c == '\u{0}' {
break; break;
} }