From 6d75e76a408ac3f474d0ad099e7ca4a8c9f6663c Mon Sep 17 00:00:00 2001 From: diamonddrake Date: Sun, 15 Dec 2024 09:43:11 -0500 Subject: [PATCH] run fmt and fix warnings --- plugins/http/src/commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index 38bac092..3dc0297e 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -77,6 +77,7 @@ pub struct FetchResponse { #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] +#[allow(dead_code)] //feature flags shoudln't affect api pub struct DangerousSettings { accept_invalid_certs: bool, accept_invalid_hostnames: bool, @@ -239,7 +240,8 @@ pub async fn fetch( let _ = danger_config; return Err(Error::DangerousSettings); } - #[cfg(feature = "dangerous-settings")]{ + #[cfg(feature = "dangerous-settings")] + { builder = builder .danger_accept_invalid_certs(danger_config.accept_invalid_certs) .danger_accept_invalid_hostnames(danger_config.accept_invalid_hostnames)