Skip to content

Commit 1b3c3d0

Browse files
committed
Change match_wild lint name to WILDCARD_MATCH_ARM.
Also fix message capitalization.
1 parent 0da1867 commit 1b3c3d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/matches.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ declare_clippy_lint! {
201201
/// }
202202
/// ```
203203
declare_clippy_lint! {
204-
pub MATCH_WILD,
204+
pub WILDCARD_MATCH_ARM,
205205
restriction,
206206
"a wildcard match arm using `_`"
207207
}
@@ -219,7 +219,7 @@ impl LintPass for MatchPass {
219219
MATCH_OVERLAPPING_ARM,
220220
MATCH_WILD_ERR_ARM,
221221
MATCH_AS_REF,
222-
MATCH_WILD
222+
WILDCARD_MATCH_ARM
223223
)
224224
}
225225

@@ -469,9 +469,9 @@ fn check_wild_arm(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
469469
for arm in arms {
470470
if is_wild(&arm.pats[0]) {
471471
span_note_and_lint(cx,
472-
MATCH_WILD,
472+
WILDCARD_MATCH_ARM,
473473
arm.pats[0].span,
474-
"Wildcard match will miss any future added variants.",
474+
"wildcard match will miss any future added variants.",
475475
arm.pats[0].span,
476476
"to resolve, match each variant explicitly");
477477
}

0 commit comments

Comments
 (0)