mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
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
@ -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…
Reference in New Issue
Block a user