From fcabbeb251bedabce6b45b8c4db6ec15e6002b82 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Mon, 2 Apr 2018 06:57:14 +0200 Subject: [PATCH] Fix clippy warning Fix too_many_arguments on `check_general_case` by allowing it. I can't see a sensible way of grouping the parameters. --- clippy_lints/src/methods.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/methods.rs b/clippy_lints/src/methods.rs index 29e8a9a82b1..423be2106d1 100644 --- a/clippy_lints/src/methods.rs +++ b/clippy_lints/src/methods.rs @@ -887,6 +887,7 @@ fn check_unwrap_or_default( } /// Check for `*or(foo())`. + #[allow(too_many_arguments)] fn check_general_case( cx: &LateContext, name: &str, -- 2.44.0