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:29:5
   |
29 |     pub(crate) cargo_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)]`
```
  • Loading branch information
taiki-e committed Oct 22, 2023
1 parent 8fa5da1 commit fbffc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![forbid(unsafe_code)]
#![warn(rust_2018_idioms, single_use_lifetimes, unreachable_pub, clippy::pedantic)]
#![allow(clippy::too_many_lines, clippy::single_match_else)]
#![allow(clippy::too_many_lines, clippy::single_match_else, clippy::struct_field_names)]

#[macro_use]
mod term;
Expand Down

0 comments on commit fbffc32

Please sign in to comment.