Skip to content

Commit a41ecc4

Browse files
committed
wildcard_match_arm: rename function.
We also don't need `ex` as an argument.
1 parent 3e39ebe commit a41ecc4

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
@@ -234,7 +234,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MatchPass {
234234
check_match_bool(cx, ex, arms, expr);
235235
check_overlapping_arms(cx, ex, arms);
236236
check_wild_err_arm(cx, ex, arms);
237-
check_wild_arm(cx, ex, arms);
237+
check_wild_match(cx, arms);
238238
check_match_as_ref(cx, ex, arms, expr);
239239
}
240240
if let ExprKind::Match(ref ex, ref arms, _) = expr.node {
@@ -459,7 +459,7 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
459459
}
460460
}
461461

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

0 commit comments

Comments
 (0)