Skip to content

Commit 4f4444c

Browse files
committed
Remove trailling .s
1 parent c21b4ad commit 4f4444c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

clippy_lints/src/matches.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ fn check_wild_enum_match(cx: &LateContext<'_, '_>, ex: &Expr, arms: &[Arm]) {
543543
return;
544544
}
545545

546-
let mut message = "wildcard match will miss any future added variants.";
546+
let mut message = "wildcard match will miss any future added variants";
547547

548548
if let ty::Adt(def, _) = ty.kind {
549549
if def.is_variant_list_non_exhaustive() {
550-
message = "match on non-exhaustive enum doesn't explicitly match all known variants.";
550+
message = "match on non-exhaustive enum doesn't explicitly match all known variants";
551551
suggestion.push(String::from("_"));
552552
}
553553
}

tests/ui/wildcard_enum_match_arm.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: wildcard match will miss any future added variants.
1+
error: wildcard match will miss any future added variants
22
--> $DIR/wildcard_enum_match_arm.rs:31:9
33
|
44
LL | _ => eprintln!("Not red"),
@@ -10,25 +10,25 @@ note: lint level defined here
1010
LL | #![deny(clippy::wildcard_enum_match_arm)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
error: wildcard match will miss any future added variants.
13+
error: wildcard match will miss any future added variants
1414
--> $DIR/wildcard_enum_match_arm.rs:35:9
1515
|
1616
LL | _not_red => eprintln!("Not red"),
1717
| ^^^^^^^^ help: try this: `_not_red @ Color::Green | _not_red @ Color::Blue | _not_red @ Color::Rgb(..) | _not_red @ Color::Cyan`
1818

19-
error: wildcard match will miss any future added variants.
19+
error: wildcard match will miss any future added variants
2020
--> $DIR/wildcard_enum_match_arm.rs:39:9
2121
|
2222
LL | not_red => format!("{:?}", not_red),
2323
| ^^^^^^^ help: try this: `not_red @ Color::Green | not_red @ Color::Blue | not_red @ Color::Rgb(..) | not_red @ Color::Cyan`
2424

25-
error: wildcard match will miss any future added variants.
25+
error: wildcard match will miss any future added variants
2626
--> $DIR/wildcard_enum_match_arm.rs:55:9
2727
|
2828
LL | _ => "No red",
2929
| ^ help: try this: `Color::Red | Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
3030

31-
error: match on non-exhaustive enum doesn't explicitly match all known variants.
31+
error: match on non-exhaustive enum doesn't explicitly match all known variants
3232
--> $DIR/wildcard_enum_match_arm.rs:72:9
3333
|
3434
LL | _ => {},

0 commit comments

Comments
 (0)