diff options
author | Veetaha <[email protected]> | 2020-02-17 21:13:38 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-17 21:13:38 +0000 |
commit | cd8e56c580fd8e79eccd55790a23a4b554bbe161 (patch) | |
tree | b071a5de3696740947e9b1bf63511445abd3cc04 /crates/ra_syntax/src/lib.rs | |
parent | e05eb631d41a7743a16daa982edf1001a294783a (diff) |
ra_syntax: remove message() method and use only Display trait in SyntaxError as per matklad
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index cc02c4be5..e3f74da6d 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -115,7 +115,7 @@ impl Parse<SourceFile> { | |||
115 | pub fn debug_dump(&self) -> String { | 115 | pub fn debug_dump(&self) -> String { |
116 | let mut buf = format!("{:#?}", self.tree().syntax()); | 116 | let mut buf = format!("{:#?}", self.tree().syntax()); |
117 | for err in self.errors.iter() { | 117 | for err in self.errors.iter() { |
118 | writeln!(buf, "error {:?}: {}", err.range(), err.message()).unwrap(); | 118 | writeln!(buf, "error {:?}: {}", err.range(), err).unwrap(); |
119 | } | 119 | } |
120 | buf | 120 | buf |
121 | } | 121 | } |