File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1530,9 +1530,10 @@ fn build_with_store_internal(
15301530fn optionally_install_rustls_cryptoprovider ( ) {
15311531 // Ensure we always install a `CryptoProvider` for `rustls` if it was somehow not previously installed by now.
15321532 if rustls:: crypto:: CryptoProvider :: get_default ( ) . is_none ( ) {
1533- let res_ring = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) ;
1534- let res_aws = rustls:: crypto:: aws_lc_rs:: default_provider ( ) . install_default ( ) ;
1535- debug_assert ! ( res_ring. is_ok( ) || res_aws. is_ok( ) , "We need to install a CryptoProvider" ) ;
1533+ let res = rustls:: crypto:: ring:: default_provider ( )
1534+ . install_default ( )
1535+ . or ( rustls:: crypto:: aws_lc_rs:: default_provider ( ) . install_default ( ) ) ;
1536+ debug_assert ! ( res. is_ok( ) , "We need to install a CryptoProvider" ) ;
15361537 }
15371538
15381539 // Refuse to startup without TLS support. Better to catch it now than even later at runtime.
You can’t perform that action at this time.
0 commit comments