Skip to content

Commit

Permalink
Ignore clippy::struct_field_names lint
Browse files Browse the repository at this point in the history
```
error: field name ends with the struct's name
  --> src/cli.rs:19:5
   |
19 |     pub(crate) leading_args: Vec<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names
   = note: `-D clippy::struct-field-names` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::struct_field_names)]`

error: field name ends with the struct's name
  --> src/cli.rs:20:5
   |
20 |     pub(crate) trailing_args: Vec<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names

error: field name starts with the struct's name
  --> src/features.rs:12:5
   |
12 |     features: Vec<Feature>,
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names
```
  • Loading branch information
taiki-e committed Oct 22, 2023
1 parent fb45039 commit 6a8723d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
clippy::cast_lossless,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::struct_field_names,
clippy::too_many_lines
)]

Expand Down

0 comments on commit 6a8723d

Please sign in to comment.