Skip to content

Commit

Permalink
Merge pull request #164 from fanatid/clippy-warnings
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
sfackler authored May 6, 2020
2 parents 97b77f4 + cdd9f89 commit e092843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imp/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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(),
})
}
}
Expand Down

0 comments on commit e092843

Please sign in to comment.