File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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" ) ]  
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments