diff --git a/runtime/src/dotnet.rs b/runtime/src/dotnet.rs index 3ad5469f..6b780a2f 100644 --- a/runtime/src/dotnet.rs +++ b/runtime/src/dotnet.rs @@ -44,7 +44,7 @@ fn sanitize_stdout_line(line: &str) -> String { // CSI sequence: ESC [ ... if next == '[' { chars.next(); - while let Some(csi_char) = chars.next() { + for csi_char in chars.by_ref() { let code = csi_char as u32; if (0x40..=0x7E).contains(&code) { break;