Skip to content

Commit a183946

Browse files
committed
Remove useless parameters in func call
1 parent 6940893 commit a183946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/matches.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Matches {
267267
check_wild_err_arm(cx, ex, arms);
268268
check_wild_enum_match(cx, ex, arms);
269269
check_match_as_ref(cx, ex, arms, expr);
270-
check_pats_wild_match(cx, ex, arms, expr);
270+
check_pats_wild_match(cx, arms);
271271
}
272272
if let ExprKind::Match(ref ex, ref arms, _) = expr.kind {
273273
check_match_ref_pats(cx, ex, arms, expr);
@@ -686,7 +686,7 @@ fn check_match_as_ref(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm], expr: &
686686
}
687687
}
688688

689-
fn check_pats_wild_match(cx: &LateContext<'_, '_>, _ex: &Expr, arms: &[Arm], _expr: &Expr) {
689+
fn check_pats_wild_match(cx: &LateContext<'_, '_>, arms: &[Arm]) {
690690
for arm in arms {
691691
if let PatKind::Or(ref fields) = arm.pat.kind {
692692
// look for multiple fields where one at least matches Wild pattern

0 commit comments

Comments
 (0)