Skip to content

Commit

Permalink
run fmt and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RickeyWard committed Dec 15, 2024
1 parent 084f996 commit 6d75e76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/http/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -239,7 +240,8 @@ pub async fn fetch<R: Runtime>(
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)
Expand Down

0 comments on commit 6d75e76

Please sign in to comment.