Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 23eae09

Browse files
committed
wildcard_match_arm: rename function.
We also don't need `ex` as an argument.
1 parent 0689241 commit 23eae09

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
@@ -238,7 +238,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MatchPass {
238238
check_match_bool(cx, ex, arms, expr);
239239
check_overlapping_arms(cx, ex, arms);
240240
check_wild_err_arm(cx, ex, arms);
241-
check_wild_arm(cx, ex, arms);
241+
check_wild_match(cx, arms);
242242
check_match_as_ref(cx, ex, arms, expr);
243243
}
244244
if let ExprKind::Match(ref ex, ref arms, _) = expr.node {
@@ -463,7 +463,7 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
463463
}
464464
}
465465

466-
fn check_wild_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
466+
fn check_wild_match(cx: &LateContext<'_, '_>, arms: &[Arm]) {
467467
for arm in arms {
468468
if is_wild(&arm.pats[0]) {
469469
span_note_and_lint(cx,

0 commit comments

Comments
 (0)