aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs
index 02ddd25e7..d897ac5de 100644
--- a/crates/ra_mbe/src/syntax_bridge.rs
+++ b/crates/ra_mbe/src/syntax_bridge.rs
@@ -148,7 +148,7 @@ impl ExpandedRangeMap {
148 .filter_map(|(r, tid)| { 148 .filter_map(|(r, tid)| {
149 let adjusted_id = tt::TokenId(tid.0.checked_sub(shift)?); 149 let adjusted_id = tt::TokenId(tid.0.checked_sub(shift)?);
150 let to_range = to.relative_range_of(adjusted_id)?; 150 let to_range = to.relative_range_of(adjusted_id)?;
151 151
152 Some((*r, TextRange::offset_len(to_range.start() + start, to_range.len()))) 152 Some((*r, TextRange::offset_len(to_range.start() + start, to_range.len())))
153 }) 153 })
154 .collect() 154 .collect()