From 3365cffa962ec0bd8a6198252f9bc46a145df20f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Thu, 31 Jul 2025 21:45:26 +0200 Subject: [PATCH] prefere for loop --- src/machine/system_calls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index cdd87dfc..6c91bada 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -194,7 +194,7 @@ fn pstr_segment_char_count_up_to( let mut byte_offset = 0; if max_chars > 0 { - while let Some(c) = char_iter.next() { + for c in &mut char_iter { if c == '\u{0}' { break; } -- 2.54.0