Update src/client.rs

Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
pull/205/head
Yusuf Bera Ertan 3 years ago committed by GitHub
parent d7e2f0a72a
commit a729b37b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/client.rs

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

Loading…
Cancel
Save