Skip to content

Commit daafbd1

Browse files
committed
fix
1 parent f903abb commit daafbd1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

compiler/parser/src/lexer.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ where
117117
next
118118
}
119119

120-
fn fill(&mut self) {
121-
while self.window[0].is_none() {
122-
if self.slide().is_none() {
123-
return;
124-
}
125-
}
126-
}
127-
128120
fn change_first(&mut self, ch: char) {
129121
*self.window.first_mut().expect("never empty") = Some(ch);
130122
}
@@ -241,7 +233,9 @@ where
241233
location: start,
242234
window: CharWindow::new(input),
243235
};
244-
lxr.window.fill();
236+
lxr.window.slide();
237+
lxr.window.slide();
238+
lxr.window.slide();
245239
// Start at top row (=1) left column (=1)
246240
lxr.location.reset();
247241
lxr

0 commit comments

Comments
 (0)