mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Simplify error formatting
This commit is contained in:
parent
deb3550fea
commit
3aca697511
2 changed files with 5 additions and 8 deletions
|
@ -52,7 +52,7 @@ impl fmt::Display for ExpandError {
|
|||
ExpandError::BindingError(e) => f.write_str(e),
|
||||
ExpandError::ConversionError => f.write_str("could not convert tokens"),
|
||||
ExpandError::InvalidRepeat => f.write_str("invalid repeat expression"),
|
||||
ExpandError::ProcMacroError(e) => write!(f, "{}", e),
|
||||
ExpandError::ProcMacroError(e) => e.fmt(f),
|
||||
ExpandError::Other(e) => f.write_str(e),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue