8b02dac542
side effect for `enum_variants`: use .first() instead of .get(0) in enum_variants lint move to_camel_case to str_util module move module, enum and struct name repetitions check to a single file `item_name_repetitions` rename enum_variants threshold config option
35 lines
886 B
Plaintext
35 lines
886 B
Plaintext
error: all fields have the same postfix: `data`
|
|
--> $DIR/item_name_repetitions.rs:9:1
|
|
|
|
|
LL | / struct Data2 {
|
|
LL | |
|
|
LL | | a_data: u8,
|
|
LL | | b_data: u8,
|
|
... |
|
|
LL | | e_data: u8,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= help: remove the postfixes
|
|
= note: `-D clippy::struct-field-names` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::struct_field_names)]`
|
|
|
|
error: all variants have the same postfix: `Foo`
|
|
--> $DIR/item_name_repetitions.rs:23:1
|
|
|
|
|
LL | / enum Foo2 {
|
|
LL | |
|
|
LL | | AFoo,
|
|
LL | | BFoo,
|
|
... |
|
|
LL | | EFoo,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|