@@ -43,7 +43,7 @@ fn apply_reductions(cx: &LateContext<'_>, nbits: u64, expr: &Expr<'_>, signed: b
4343 } ,
4444 _ => nbits,
4545 } ,
46- ExprKind :: MethodCall ( method, _ , [ left, right] , _) => {
46+ ExprKind :: MethodCall ( method, [ left, right] , _) => {
4747 if signed {
4848 return nbits;
4949 }
@@ -54,7 +54,7 @@ fn apply_reductions(cx: &LateContext<'_>, nbits: u64, expr: &Expr<'_>, signed: b
5454 } ;
5555 apply_reductions ( cx, nbits, left, signed) . min ( max_bits. unwrap_or ( u64:: max_value ( ) ) )
5656 } ,
57- ExprKind :: MethodCall ( method, _ , [ _, lo, hi] , _) => {
57+ ExprKind :: MethodCall ( method, [ _, lo, hi] , _) => {
5858 if method. ident . as_str ( ) == "clamp" {
5959 //FIXME: make this a diagnostic item
6060 if let ( Some ( lo_bits) , Some ( hi_bits) ) = ( get_constant_bits ( cx, lo) , get_constant_bits ( cx, hi) ) {
@@ -63,7 +63,7 @@ fn apply_reductions(cx: &LateContext<'_>, nbits: u64, expr: &Expr<'_>, signed: b
6363 }
6464 nbits
6565 } ,
66- ExprKind :: MethodCall ( method, _ , [ _value] , _) => {
66+ ExprKind :: MethodCall ( method, [ _value] , _) => {
6767 if method. ident . name . as_str ( ) == "signum" {
6868 0 // do not lint if cast comes from a `signum` function
6969 } else {
0 commit comments