From 9b60027c1605420778f41a1082ec80fd730b0c25 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 15 May 2024 22:28:25 -0700 Subject: [PATCH] Ignore struct_excessive_bools pedantic clippy lint 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)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 4d520bd10b..b05a0ce847 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,