We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084f996 commit 6d75e76Copy full SHA for 6d75e76
plugins/http/src/commands.rs
@@ -77,6 +77,7 @@ pub struct FetchResponse {
77
78
#[derive(Debug, Deserialize)]
79
#[serde(rename_all = "camelCase")]
80
+#[allow(dead_code)] //feature flags shoudln't affect api
81
pub struct DangerousSettings {
82
accept_invalid_certs: bool,
83
accept_invalid_hostnames: bool,
@@ -239,7 +240,8 @@ pub async fn fetch<R: Runtime>(
239
240
let _ = danger_config;
241
return Err(Error::DangerousSettings);
242
}
- #[cfg(feature = "dangerous-settings")]{
243
+ #[cfg(feature = "dangerous-settings")]
244
+ {
245
builder = builder
246
.danger_accept_invalid_certs(danger_config.accept_invalid_certs)
247
.danger_accept_invalid_hostnames(danger_config.accept_invalid_hostnames)
0 commit comments