ra_syntax: SyntaxError::range() now returns by value

This commit is contained in:
Veetaha 2020-02-10 02:08:49 +02:00
parent acdab6f0f2
commit e00922d113
4 changed files with 6 additions and 12 deletions

View file

@ -30,8 +30,8 @@ impl SyntaxError {
pub fn message(&self) -> &str {
&self.0
}
pub fn range(&self) -> &TextRange {
&self.1
pub fn range(&self) -> TextRange {
self.1
}
pub fn with_range(mut self, range: TextRange) -> Self {