Move cognitive_complexity to nursery

This commit is contained in:
David Tolnay 2020-04-06 15:46:40 -07:00
parent f8308c811f
commit 899a1b5598
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
23 changed files with 48 additions and 58 deletions

View file

@ -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;