Skip to content

Commit d518720

Browse files
chore: coverage job suggests maybe we need the coverage cfg actually
1 parent ad88cab commit d518720

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(any(not(feature = "fips"), test))]
100+
#[cfg(any(not(feature = "fips"), coverage))]
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(feature = "fips", not(test)))]
115+
#[cfg(all(feature = "fips", not(coverage)))]
116116
fn ensure_crypto_provider_initialized() {
117117
compile_error!("is this what we are trying to compile in coverage?");
118118
}

0 commit comments

Comments
 (0)