mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Cheap cloneable LineIndex (#3896)
This commit is contained in:
parent
9209e57c5a
commit
76c47a9a43
10 changed files with 465 additions and 335 deletions
|
@ -80,10 +80,7 @@ impl Format<ASTFormatContext<'_>> for Literal {
|
|||
|
||||
f.write_element(FormatElement::StaticTextSlice {
|
||||
text,
|
||||
range: TextRange::new(
|
||||
start_index.try_into().unwrap(),
|
||||
end_index.try_into().unwrap(),
|
||||
),
|
||||
range: TextRange::new(start_index, end_index),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue