Skip to content

Commit 3330365

Browse files
committed
f Maybe not be as strict?
1 parent 134bbc4 commit 3330365

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/builder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,10 +1532,7 @@ fn optionally_install_rustls_cryptoprovider() {
15321532
if rustls::crypto::CryptoProvider::get_default().is_none() {
15331533
let res_ring = rustls::crypto::ring::default_provider().install_default();
15341534
let res_aws = rustls::crypto::aws_lc_rs::default_provider().install_default();
1535-
debug_assert!(
1536-
res_ring.is_ok() ^ res_aws.is_ok(),
1537-
"We need to install exactly one CryptoProvider"
1538-
);
1535+
debug_assert!(res_ring.is_ok() || res_aws.is_ok(), "We need to install a CryptoProvider");
15391536
}
15401537

15411538
// Refuse to startup without TLS support. Better to catch it now than even later at runtime.

0 commit comments

Comments
 (0)