mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-21 19:04:24 +00:00
ra_syntax: remove message() method and use only Display trait in SyntaxError as per matklad
This commit is contained in:
parent
e05eb631d4
commit
cd8e56c580
2 changed files with 1 additions and 4 deletions
|
@ -27,9 +27,6 @@ impl SyntaxError {
|
|||
Self(message.into(), TextRange::offset_len(offset, 0.into()))
|
||||
}
|
||||
|
||||
pub fn message(&self) -> &str {
|
||||
&self.0
|
||||
}
|
||||
pub fn range(&self) -> TextRange {
|
||||
self.1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue