|
|
@ -72,10 +72,7 @@ mod encryption { |
|
|
|
Mode::Tls => { |
|
|
|
Mode::Tls => { |
|
|
|
let config = { |
|
|
|
let config = { |
|
|
|
let mut config = ClientConfig::new(); |
|
|
|
let mut config = ClientConfig::new(); |
|
|
|
config.root_store = match rustls_native_certs::load_native_certs() { |
|
|
|
config.root_store = rustls_native_certs::load_native_certs().map_err(|(_, err)| err)?; |
|
|
|
Ok(store) => store, |
|
|
|
|
|
|
|
Err((_, err)) => Err(err)?, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arc::new(config) |
|
|
|
Arc::new(config) |
|
|
|
}; |
|
|
|
}; |
|
|
|