]> git.lizzy.rs Git - rust.git/commitdiff
Fix clippy warning
authorMichael Wright <mikerite@lavabit.com>
Mon, 2 Apr 2018 04:57:14 +0000 (06:57 +0200)
committerMichael Wright <mikerite@lavabit.com>
Mon, 2 Apr 2018 05:04:43 +0000 (07:04 +0200)
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

index 29e8a9a82b15996162387b59e7490f93b7c7c3dd..423be2106d168e65e275c638406f8f5e6ea6154b 100644 (file)
@@ -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,