ra_syntax: remove message() method and use only Display trait in SyntaxError as per matklad
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user