Cleaner fix for #[rustfmt::skip] on expressions

Part of #12507
This commit is contained in:
Nahor
2026-03-03 14:01:45 -08:00
committed by Johannes Altmanninger
parent 786ac339b8
commit 8ef9864c0c

View File

@@ -2203,9 +2203,9 @@ macro_rules! validate {
};
}
#[rustfmt::skip]
#[allow(clippy::redundant_closure_call)]
(|| {
// TODO: feature(stmt_expr_attributes): use #[rustfmt::skip]
#[cfg_attr(any(), rustfmt::skip)]
{
validate!(
0, "if", 1, " foo",
0, "\nend"
@@ -2407,6 +2407,6 @@ macro_rules! validate {
0, "\n",
0, r#"$()"$() ""#
);
})();
}
}
}