Skip to content

Commit

Permalink
wildcard_match_arm: rename function.
Browse files Browse the repository at this point in the history
We also don't need `ex` as an argument.
  • Loading branch information
Aehmlo committed Jan 29, 2019
1 parent 0689241 commit 23eae09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MatchPass {
check_match_bool(cx, ex, arms, expr);
check_overlapping_arms(cx, ex, arms);
check_wild_err_arm(cx, ex, arms);
check_wild_arm(cx, ex, arms);
check_wild_match(cx, arms);
check_match_as_ref(cx, ex, arms, expr);
}
if let ExprKind::Match(ref ex, ref arms, _) = expr.node {
Expand Down Expand Up @@ -463,7 +463,7 @@ fn check_wild_err_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
}
}

fn check_wild_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
fn check_wild_match(cx: &LateContext<'_, '_>, arms: &[Arm]) {
for arm in arms {
if is_wild(&arm.pats[0]) {
span_note_and_lint(cx,
Expand Down

0 comments on commit 23eae09

Please sign in to comment.