Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ fn rewrite_macro_inner(
Err(err) => match err {
// We will move on to parsing macro args just like other macros
// if we could not parse lazy_static! with known syntax
RewriteError::MacroFailure { kind, span: _ }
if kind == MacroErrorKind::ParseFailure => {}
RewriteError::MacroFailure {
kind: MacroErrorKind::ParseFailure,
span: _,
} => {}
// If formatting fails even though parsing succeeds, return the err early
_ => return Err(err),
},
Expand Down
Loading