@@ -43,7 +43,7 @@ fn apply_reductions(cx: &LateContext<'_>, nbits: u64, expr: &Expr<'_>, signed: b
43
43
} ,
44
44
_ => nbits,
45
45
} ,
46
- ExprKind :: MethodCall ( method, _ , [ left, right] , _) => {
46
+ ExprKind :: MethodCall ( method, [ left, right] , _) => {
47
47
if signed {
48
48
return nbits;
49
49
}
@@ -54,7 +54,7 @@ fn apply_reductions(cx: &LateContext<'_>, nbits: u64, expr: &Expr<'_>, signed: b
54
54
} ;
55
55
apply_reductions ( cx, nbits, left, signed) . min ( max_bits. unwrap_or ( u64:: max_value ( ) ) )
56
56
} ,
57
- ExprKind :: MethodCall ( method, _ , [ _, lo, hi] , _) => {
57
+ ExprKind :: MethodCall ( method, [ _, lo, hi] , _) => {
58
58
if method. ident . as_str ( ) == "clamp" {
59
59
//FIXME: make this a diagnostic item
60
60
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
63
63
}
64
64
nbits
65
65
} ,
66
- ExprKind :: MethodCall ( method, _ , [ _value] , _) => {
66
+ ExprKind :: MethodCall ( method, [ _value] , _) => {
67
67
if method. ident . name . as_str ( ) == "signum" {
68
68
0 // do not lint if cast comes from a `signum` function
69
69
} else {
0 commit comments