Skip to content

Commit 6d75e76

Browse files
committed
run fmt and fix warnings
1 parent 084f996 commit 6d75e76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/http/src/commands.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ pub struct FetchResponse {
7777

7878
#[derive(Debug, Deserialize)]
7979
#[serde(rename_all = "camelCase")]
80+
#[allow(dead_code)] //feature flags shoudln't affect api
8081
pub struct DangerousSettings {
8182
accept_invalid_certs: bool,
8283
accept_invalid_hostnames: bool,
@@ -239,7 +240,8 @@ pub async fn fetch<R: Runtime>(
239240
let _ = danger_config;
240241
return Err(Error::DangerousSettings);
241242
}
242-
#[cfg(feature = "dangerous-settings")]{
243+
#[cfg(feature = "dangerous-settings")]
244+
{
243245
builder = builder
244246
.danger_accept_invalid_certs(danger_config.accept_invalid_certs)
245247
.danger_accept_invalid_hostnames(danger_config.accept_invalid_hostnames)

0 commit comments

Comments
 (0)