From 50a5da5938ba3cfbdec9edf208d0a2449b238c62 Mon Sep 17 00:00:00 2001 From: shulaoda <165626830+shulaoda@users.noreply.github.com> Date: Sat, 23 May 2026 05:58:49 +0800 Subject: [PATCH] refactor: apply clippy::redundant_guards --- src/macros.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 2d56021069c..02bbc673db6 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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), },