Skip to content

Commit

Permalink
Ignore struct_excessive_bools pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: more than 3 bools in a struct
      --> src/fixup.rs:6:1
       |
    6  | / pub(crate) struct FixupContext {
    7  | |     // Print expression such that it can be parsed back as a statement
    8  | |     // consisting of the original expression.
    9  | |     //
    ...  |
    88 | |     parenthesize_exterior_struct_lit: bool,
    89 | | }
       | |_^
       |
       = help: consider using a state machine or refactoring bools into two-variant enums
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools
       = note: `-W clippy::struct-excessive-bools` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::struct_excessive_bools)]`
  • Loading branch information
dtolnay committed May 16, 2024
1 parent 2bc0bf9 commit 9b60027
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
clippy::return_self_not_must_use,
clippy::similar_names,
clippy::single_match_else,
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
Expand Down

0 comments on commit 9b60027

Please sign in to comment.