aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/parsing
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/parsing')
-rw-r--r--crates/ra_syntax/src/parsing/reparsing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs
index 41a355ec7..4faeeab45 100644
--- a/crates/ra_syntax/src/parsing/reparsing.rs
+++ b/crates/ra_syntax/src/parsing/reparsing.rs
@@ -180,7 +180,7 @@ fn merge_errors(
180 } 180 }
181 res.extend(new_errors.into_iter().map(|new_err| { 181 res.extend(new_errors.into_iter().map(|new_err| {
182 // fighting borrow checker with a variable ;) 182 // fighting borrow checker with a variable ;)
183 let offseted_range = *new_err.range() + range_before_reparse.start(); 183 let offseted_range = new_err.range() + range_before_reparse.start();
184 new_err.with_range(offseted_range) 184 new_err.with_range(offseted_range)
185 })); 185 }));
186 res 186 res