diff options
| author | Alex Hamilton <alex.hamilton@ou.edu> | 2019-01-25 10:56:00 -0600 |
|---|---|---|
| committer | Alex Hamilton <alex.hamilton@ou.edu> | 2019-01-29 15:33:04 -0600 |
| commit | 23eae0909db7f7315f083fa019ee301e93195fcc (patch) | |
| tree | f8e0554e8f7d5d178ef68bfa98702bd7f0940c5b | |
| parent | 068924198babed20c11715bb4f4acb9f2e470a9c (diff) | |
| download | rust-23eae0909db7f7315f083fa019ee301e93195fcc.tar.gz rust-23eae0909db7f7315f083fa019ee301e93195fcc.zip | |
wildcard_match_arm: rename function.
We also don't need `ex` as an argument.
| -rw-r--r-- | clippy_lints/src/matches.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 9d4279ad1bc..024c88b368c 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -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 { @@ -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, |
