From 8ef278d3588a90fed81af143f5942e33db023af3 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 14 May 2024 19:11:22 -0700 Subject: [PATCH] enable `struct_excessive_bools` lint And ignore it in the one place it fires, I know. --- Cargo.toml | 1 + src/config.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 52412cfd..fd2da7b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,6 +75,7 @@ string_add = "warn" string_lit_chars_any = "warn" string_slice = "warn" string_to_string = "warn" +struct_excessive_bools = "warn" suspicious_xor_used_as_pow = "warn" tests_outside_test_module = "warn" try_err = "warn" diff --git a/src/config.rs b/src/config.rs index 539a26f9..8e512a49 100644 --- a/src/config.rs +++ b/src/config.rs @@ -13,6 +13,7 @@ mod proxy; use self::proxy::ProxyConfig; +#[allow(clippy::struct_excessive_bools)] #[derive(Clone, Debug, Deserialize)] pub(crate) struct Config { #[serde(default = "default_address")]