aboutsummaryrefslogtreecommitdiff
path: root/crates/mbe/src
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-11-26 18:56:38 +0000
committerLaurenČ›iu Nicola <[email protected]>2020-11-26 19:07:15 +0000
commit3aca69751181944dd23ef65c1a0af5d5f3b7208f (patch)
treedb722333cb69519e4493546a41dc47e774b8b15c /crates/mbe/src
parentdeb3550fea718e52cd03e7d14fd964d14795a31d (diff)
Simplify error formatting
Diffstat (limited to 'crates/mbe/src')
-rw-r--r--crates/mbe/src/lib.rs2
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 }