mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Convert tests to text-size
This commit is contained in:
parent
b1d5817dd1
commit
8843588fca
376 changed files with 26489 additions and 26521 deletions
|
@ -126,7 +126,7 @@ fn test_ranges() {
|
|||
|
||||
// The "x"
|
||||
let highlights = &analysis
|
||||
.highlight_range(FileRange { file_id, range: TextRange::offset_len(82.into(), 1.into()) })
|
||||
.highlight_range(FileRange { file_id, range: TextRange::at(82.into(), 1.into()) })
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(&highlights[0].highlight.to_string(), "field.declaration");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue