mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +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
|
@ -115,7 +115,7 @@ impl Parse<SourceFile> {
|
|||
pub fn debug_dump(&self) -> String {
|
||||
let mut buf = format!("{:#?}", self.tree().syntax());
|
||||
for err in self.errors.iter() {
|
||||
writeln!(buf, "error {:?}: {}", err.range(), err.message()).unwrap();
|
||||
writeln!(buf, "error {:?}: {}", err.range(), err).unwrap();
|
||||
}
|
||||
buf
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue