mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fix formatting
This commit is contained in:
parent
2a76bb5a0b
commit
568f3cff41
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ impl ExpandedRangeMap {
|
||||||
.filter_map(|(r, tid)| {
|
.filter_map(|(r, tid)| {
|
||||||
let adjusted_id = tt::TokenId(tid.0.checked_sub(shift)?);
|
let adjusted_id = tt::TokenId(tid.0.checked_sub(shift)?);
|
||||||
let to_range = to.relative_range_of(adjusted_id)?;
|
let to_range = to.relative_range_of(adjusted_id)?;
|
||||||
|
|
||||||
Some((*r, TextRange::offset_len(to_range.start() + start, to_range.len())))
|
Some((*r, TextRange::offset_len(to_range.start() + start, to_range.len())))
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue