diff options
Diffstat (limited to 'crates/ra_syntax/src/syntax_error.rs')
-rw-r--r-- | crates/ra_syntax/src/syntax_error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/syntax_error.rs b/crates/ra_syntax/src/syntax_error.rs index eaa825cf0..af4584e66 100644 --- a/crates/ra_syntax/src/syntax_error.rs +++ b/crates/ra_syntax/src/syntax_error.rs | |||
@@ -30,8 +30,8 @@ impl SyntaxError { | |||
30 | pub fn message(&self) -> &str { | 30 | pub fn message(&self) -> &str { |
31 | &self.0 | 31 | &self.0 |
32 | } | 32 | } |
33 | pub fn range(&self) -> &TextRange { | 33 | pub fn range(&self) -> TextRange { |
34 | &self.1 | 34 | self.1 |
35 | } | 35 | } |
36 | 36 | ||
37 | pub fn with_range(mut self, range: TextRange) -> Self { | 37 | pub fn with_range(mut self, range: TextRange) -> Self { |