Skip to content

Commit 59bfd5d

Browse files
Update pyrefly/lib/test/lsp/completion.rs
Co-authored-by: Kyle Into <[email protected]>
1 parent 324f5aa commit 59bfd5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrefly/lib/test/lsp/completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn strip_ansi(input: &str) -> String {
2727
let mut chars = input.chars();
2828
while let Some(ch) = chars.next() {
2929
if ch == '\u{1b}' {
30-
while let Some(next) = chars.next() {
30+
for next in chars.by_ref() {
3131
if next == 'm' {
3232
break;
3333
}

0 commit comments

Comments
 (0)