diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-26 19:18:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-26 19:18:40 +0000 |
commit | 38d595c36fda9dc62c78c860421144999612e64c (patch) | |
tree | db722333cb69519e4493546a41dc47e774b8b15c /crates/mbe/src | |
parent | deb3550fea718e52cd03e7d14fd964d14795a31d (diff) | |
parent | 3aca69751181944dd23ef65c1a0af5d5f3b7208f (diff) |
Merge #6644
6644: Simplify error formatting r=lnicola a=lnicola
CC jonas-schievink
bors r+
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/mbe/src')
-rw-r--r-- | crates/mbe/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/mbe/src/lib.rs b/crates/mbe/src/lib.rs index 844e5a117..2d0763c47 100644 --- a/crates/mbe/src/lib.rs +++ b/crates/mbe/src/lib.rs | |||
@@ -52,7 +52,7 @@ impl fmt::Display for ExpandError { | |||
52 | ExpandError::BindingError(e) => f.write_str(e), | 52 | ExpandError::BindingError(e) => f.write_str(e), |
53 | ExpandError::ConversionError => f.write_str("could not convert tokens"), | 53 | ExpandError::ConversionError => f.write_str("could not convert tokens"), |
54 | ExpandError::InvalidRepeat => f.write_str("invalid repeat expression"), | 54 | ExpandError::InvalidRepeat => f.write_str("invalid repeat expression"), |
55 | ExpandError::ProcMacroError(e) => write!(f, "{}", e), | 55 | ExpandError::ProcMacroError(e) => e.fmt(f), |
56 | ExpandError::Other(e) => f.write_str(e), | 56 | ExpandError::Other(e) => f.write_str(e), |
57 | } | 57 | } |
58 | } | 58 | } |