Skip to content

Commit 4236156

Browse files
committed
pub-enum-variant-names: make lint adhere to lint message convention
1 parent 1f17c3b commit 4236156

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

clippy_lints/src/enum_variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fn check_variant(
227227
cx,
228228
lint,
229229
span,
230-
&format!("All variants have the same {}fix: `{}`", what, value),
230+
&format!("all variants have the same {}fix: `{}`", what, value),
231231
None,
232232
&format!(
233233
"remove the {}fixes and use full paths to \

tests/ui/enum_variants.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error: Variant name starts with the enum's name
2424
LL | FoodBad,
2525
| ^^^^^^^
2626

27-
error: All variants have the same prefix: `Food`
27+
error: all variants have the same prefix: `Food`
2828
--> $DIR/enum_variants.rs:26:1
2929
|
3030
LL | / enum Food {
@@ -36,7 +36,7 @@ LL | | }
3636
|
3737
= help: remove the prefixes and use full paths to the variants instead of glob imports
3838

39-
error: All variants have the same prefix: `CallType`
39+
error: all variants have the same prefix: `CallType`
4040
--> $DIR/enum_variants.rs:36:1
4141
|
4242
LL | / enum BadCallType {
@@ -48,7 +48,7 @@ LL | | }
4848
|
4949
= help: remove the prefixes and use full paths to the variants instead of glob imports
5050

51-
error: All variants have the same prefix: `Constant`
51+
error: all variants have the same prefix: `Constant`
5252
--> $DIR/enum_variants.rs:48:1
5353
|
5454
LL | / enum Consts {
@@ -60,7 +60,7 @@ LL | | }
6060
|
6161
= help: remove the prefixes and use full paths to the variants instead of glob imports
6262

63-
error: All variants have the same prefix: `With`
63+
error: all variants have the same prefix: `With`
6464
--> $DIR/enum_variants.rs:82:1
6565
|
6666
LL | / enum Seallll {
@@ -72,7 +72,7 @@ LL | | }
7272
|
7373
= help: remove the prefixes and use full paths to the variants instead of glob imports
7474

75-
error: All variants have the same prefix: `Prefix`
75+
error: all variants have the same prefix: `Prefix`
7676
--> $DIR/enum_variants.rs:88:1
7777
|
7878
LL | / enum NonCaps {
@@ -84,7 +84,7 @@ LL | | }
8484
|
8585
= help: remove the prefixes and use full paths to the variants instead of glob imports
8686

87-
error: All variants have the same prefix: `With`
87+
error: all variants have the same prefix: `With`
8888
--> $DIR/enum_variants.rs:94:1
8989
|
9090
LL | / pub enum PubSeall {

0 commit comments

Comments
 (0)