Respect #[allow(unused_braces)]

This commit is contained in:
hkalbasi 2023-08-28 22:22:28 +03:30
parent 144526c908
commit 514fefab9c
2 changed files with 22 additions and 1 deletions

View file

@ -76,7 +76,7 @@ pub(crate) fn unused_mut(ctx: &DiagnosticsContext<'_>, d: &hir::UnusedMut) -> Di
"variable does not need to be mutable",
ast,
)
.experimental() // Not supporting `#[allow(unused_mut)]` leads to false positive.
.experimental() // Not supporting `#[allow(unused_mut)]` in proc macros leads to false positive.
.with_fixes(fixes)
}