Skip to content

Commit 23fc969

Browse files
committed
WIP
1 parent f874750 commit 23fc969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddcommon/src/connector/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod https {
9797
/// happens here. On non-unix platforms, ddcommon uses `ring` instead, which handles this
9898
/// at rustls initialization. TODO: Move to the more ergonomic LazyLock when MSRV is 1.80
9999
/// In fips mode we expect someone to have done this already.
100-
#[cfg(not(all(unix, feature = "fips")))]
100+
#[cfg(all(unix, not(feature = "fips")))]
101101
fn ensure_crypto_provider_initialized() {
102102
use std::sync::OnceLock;
103103
static INIT_CRYPTO_PROVIDER: OnceLock<()> = OnceLock::new();
@@ -112,7 +112,7 @@ mod https {
112112

113113
// This this actually needs to be done by the user somewhere in their own main.
114114
// This will only be active on Unix platforms
115-
#[cfg(all(unix, feature = "fips"))]
115+
#[cfg(any(not(unix), all(unix, feature = "fips")))]
116116
fn ensure_crypto_provider_initialized() {}
117117

118118
#[cfg(feature = "use_webpki_roots")]

0 commit comments

Comments
 (0)