Skip to content

Commit e092843

Browse files
authored
Merge pull request #164 from fanatid/clippy-warnings
Fix clippy warnings
2 parents 97b77f4 + cdd9f89 commit e092843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/imp/openssl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn supported_protocols(
9191

9292
fn init_trust() {
9393
static ONCE: Once = Once::new();
94-
ONCE.call_once(|| openssl_probe::init_ssl_cert_env_vars());
94+
ONCE.call_once(openssl_probe::init_ssl_cert_env_vars);
9595
}
9696

9797
#[cfg(target_os = "android")]
@@ -158,7 +158,7 @@ impl Identity {
158158
Ok(Identity {
159159
pkey: parsed.pkey,
160160
cert: parsed.cert,
161-
chain: parsed.chain.into_iter().flat_map(|x| x).collect(),
161+
chain: parsed.chain.into_iter().flatten().collect(),
162162
})
163163
}
164164
}

0 commit comments

Comments
 (0)