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.
This commit is contained in:
parent
d45612e606
commit
3373fa97e2
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ use utils::{camel_case_from, camel_case_until, in_macro};
|
|||
/// enum Cake {
|
||||
/// BlackForestCake,
|
||||
/// HummingbirdCake,
|
||||
/// BattenbergCake,
|
||||
/// }
|
||||
/// ```
|
||||
declare_clippy_lint! {
|
||||
|
|
@ -41,6 +42,7 @@ declare_clippy_lint! {
|
|||
/// enum Cake {
|
||||
/// BlackForestCake,
|
||||
/// HummingbirdCake,
|
||||
/// BattenbergCake,
|
||||
/// }
|
||||
/// ```
|
||||
declare_clippy_lint! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue