mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
ra_syntax: SyntaxError::range() now returns by value
This commit is contained in:
parent
acdab6f0f2
commit
e00922d113
4 changed files with 6 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue