From cdd9f89cec9ee9b58dfd9c99e5a2ffc462c654d5 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Tue, 5 May 2020 16:55:36 +0300 Subject: [PATCH] Fix clippy warnings --- src/imp/openssl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imp/openssl.rs b/src/imp/openssl.rs index 5d835b7a..6dfbd6e5 100644 --- a/src/imp/openssl.rs +++ b/src/imp/openssl.rs @@ -91,7 +91,7 @@ fn supported_protocols( fn init_trust() { static ONCE: Once = Once::new(); - ONCE.call_once(|| openssl_probe::init_ssl_cert_env_vars()); + ONCE.call_once(openssl_probe::init_ssl_cert_env_vars); } #[cfg(target_os = "android")] @@ -158,7 +158,7 @@ impl Identity { Ok(Identity { pkey: parsed.pkey, cert: parsed.cert, - chain: parsed.chain.into_iter().flat_map(|x| x).collect(), + chain: parsed.chain.into_iter().flatten().collect(), }) } }