diff --git a/clippy_lints/src/methods.rs b/clippy_lints/src/methods.rs index 50de299ca7d..29e8a9a82b1 100644 --- a/clippy_lints/src/methods.rs +++ b/clippy_lints/src/methods.rs @@ -680,9 +680,7 @@ impl LintPass for Pass { } impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass { - #[allow(unused_attributes)] - // ^ required because `cyclomatic_complexity` attribute shows up as unused - #[cyclomatic_complexity = "30"] + #[allow(cyclomatic_complexity)] fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr) { if in_macro(expr.span) { return;