aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/syntax_error.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/syntax_error.rs b/crates/ra_syntax/src/syntax_error.rs
index 67deee1be..d29c0cf6c 100644
--- a/crates/ra_syntax/src/syntax_error.rs
+++ b/crates/ra_syntax/src/syntax_error.rs
@@ -19,15 +19,15 @@ pub enum Location {
19 Range(TextRange), 19 Range(TextRange),
20} 20}
21 21
22impl Into<Location> for TextUnit { 22impl From<TextUnit> for Location {
23 fn into(self) -> Location { 23 fn from(offset: TextUnit) -> Location {
24 Location::Offset(self) 24 Location::Offset(offset)
25 } 25 }
26} 26}
27 27
28impl Into<Location> for TextRange { 28impl From<TextRange> for Location {
29 fn into(self) -> Location { 29 fn from(range: TextRange) -> Location {
30 Location::Range(self) 30 Location::Range(range)
31 } 31 }
32} 32}
33 33