Skip to content

Commit fb9b13a

Browse files
committed
Fix FP for nonstandard_macro_braces lint
1 parent 6103814 commit fb9b13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/nonstandard_macro_braces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn is_offending_macro<'a>(cx: &EarlyContext<'_>, span: Span, mac_braces: &'a Mac
9999
if let Some(snip) = snippet_opt(cx, span.ctxt().outer_expn_data().call_site);
100100
// we must check only invocation sites
101101
// https://github.com/rust-lang/rust-clippy/issues/7422
102-
if snip.starts_with(name);
102+
if snip.starts_with(&format!("{}!", name));
103103
// make formatting consistent
104104
let c = snip.replace(" ", "");
105105
if !c.starts_with(&format!("{}!{}", name, braces.0));

0 commit comments

Comments
 (0)