Move cognitive_complexity to nursery
This commit is contained in:
parent
f8308c811f
commit
899a1b5598
23 changed files with 48 additions and 58 deletions
|
|
@ -1317,7 +1317,7 @@ declare_lint_pass!(Methods => [
|
|||
]);
|
||||
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Methods {
|
||||
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
||||
#[allow(clippy::too_many_lines)]
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr<'_>) {
|
||||
if in_macro(expr.span) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue