mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
Fix make_tokenizer_located
This commit is contained in:
@@ -154,7 +154,7 @@ pub type LexResult = Result<Spanned, LexicalError>;
|
||||
|
||||
#[inline]
|
||||
pub fn make_tokenizer(source: &str) -> impl Iterator<Item = LexResult> + '_ {
|
||||
make_tokenizer_located(source, Location::new(0, 0))
|
||||
make_tokenizer_located(source, Location::new(1, 0))
|
||||
}
|
||||
|
||||
pub fn make_tokenizer_located(
|
||||
@@ -240,8 +240,6 @@ where
|
||||
if let Some('\u{feff}') = lxr.window[0] {
|
||||
lxr.window.slide();
|
||||
}
|
||||
// Start at top row (=1) left column (=1)
|
||||
lxr.location.reset();
|
||||
lxr
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user