File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ lazy_static = "1.0"
1717libc = " 0.2"
1818tempfile = " 3.0"
1919
20- [target .'cfg(target_os = "android")' .dependencies ]
21- log = " 0.4.5"
22-
2320[target .'cfg(target_os = "windows")' .dependencies ]
2421schannel = " 0.1.13"
2522
2623[target .'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios")))' .dependencies ]
24+ log = " 0.4.5"
2725openssl = " 0.10.15"
2826openssl-sys = " 0.9.30"
2927openssl-probe = " 0.1"
Original file line number Diff line number Diff line change @@ -263,7 +263,9 @@ impl TlsConnector {
263263 supported_protocols ( builder. min_protocol , builder. max_protocol , & mut connector) ?;
264264
265265 for cert in & builder. root_certificates {
266- connector. cert_store_mut ( ) . add_cert ( ( cert. 0 ) . 0 . clone ( ) ) ?;
266+ if let Err ( err) = connector. cert_store_mut ( ) . add_cert ( ( cert. 0 ) . 0 . clone ( ) ) {
267+ debug ! ( "add_cert error: {:?}" , err) ;
268+ }
267269 }
268270
269271 #[ cfg( target_os = "android" ) ]
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ use std::fmt;
109109use std:: io;
110110use std:: result;
111111
112- #[ cfg( target_os = "android" ) ]
112+ #[ cfg( not ( any ( target_os = "macos" , target_os = "windows" , target_os = "ios" ) ) ) ]
113113#[ macro_use]
114114extern crate log;
115115#[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
You can’t perform that action at this time.
0 commit comments