Skip to content

Commit 3373fa9

Browse files
committed
Add third variant to {pub_,}enum_variant_names examples
The default value for `enum-variant-name-threshold` is 3, so the old examples (which only have two enum variants) don't actually trigger the lint by default.
1 parent d45612e commit 3373fa9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/enum_variants.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use utils::{camel_case_from, camel_case_until, in_macro};
2020
/// enum Cake {
2121
/// BlackForestCake,
2222
/// HummingbirdCake,
23+
/// BattenbergCake,
2324
/// }
2425
/// ```
2526
declare_clippy_lint! {
@@ -41,6 +42,7 @@ declare_clippy_lint! {
4142
/// enum Cake {
4243
/// BlackForestCake,
4344
/// HummingbirdCake,
45+
/// BattenbergCake,
4446
/// }
4547
/// ```
4648
declare_clippy_lint! {

0 commit comments

Comments
 (0)