]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/misc.rs
modify code
[rust.git] / clippy_lints / src / misc.rs
index 8db71d1e967620ca73267880368df8dafc609090..3918bdbdf4387cc7e5bc926df8d5519bfdd684b8 100644 (file)
@@ -523,7 +523,7 @@ fn is_signum(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
     }
 
     if_chain! {
-        if let ExprKind::MethodCall(method_name, _, [ref self_arg, ..], _) = expr.kind;
+        if let ExprKind::MethodCall(method_name, [ref self_arg, ..], _) = expr.kind;
         if sym!(signum) == method_name.ident.name;
         // Check that the receiver of the signum() is a float (expressions[0] is the receiver of
         // the method call)