Cheap cloneable LineIndex (#3896)

This commit is contained in:
Micha Reiser 2023-04-11 09:33:40 +02:00 committed by GitHub
parent 9209e57c5a
commit 76c47a9a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 465 additions and 335 deletions

View file

@ -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),
})
}
}