diff options
author | Edwin Cheng <[email protected]> | 2019-11-05 01:43:59 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-11-05 01:43:59 +0000 |
commit | 568f3cff41fd4ef49468b60f4343755a5b7b05cb (patch) | |
tree | b618e0d6016015e47792effbbc39c42a9c62129d /crates | |
parent | 2a76bb5a0b70ae83824aa2e094ae2f592dcee694 (diff) |
Fix formatting
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 |
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() |