Skip to content

Commit

Permalink
Dedupe lazy_static
Browse files Browse the repository at this point in the history
🎉 🎉 🎉
  • Loading branch information
Eijebong committed Mar 23, 2018
1 parent 4a6453a commit 6c6a415
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
40 changes: 17 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions components/net/connector.rs
Expand Up @@ -52,12 +52,9 @@ pub type Connector = HttpsConnector;

pub fn create_ssl_client(ca_file: &PathBuf) -> OpensslClient {
let mut ssl_connector_builder = SslConnectorBuilder::new(SslMethod::tls()).unwrap();
{
let context = ssl_connector_builder.builder_mut();
context.set_ca_file(ca_file).expect("could not set CA file");
context.set_cipher_list(DEFAULT_CIPHERS).expect("could not set ciphers");
context.set_options(SSL_OP_NO_SSLV2 | SSL_OP_NO_SSLV3 | SSL_OP_NO_COMPRESSION);
}
ssl_connector_builder.set_ca_file(ca_file).expect("could not set CA file");
ssl_connector_builder.set_cipher_list(DEFAULT_CIPHERS).expect("could not set ciphers");
ssl_connector_builder.set_options(SSL_OP_NO_SSLV2 | SSL_OP_NO_SSLV3 | SSL_OP_NO_COMPRESSION);
let ssl_connector = ssl_connector_builder.build();
OpensslClient::from(ssl_connector)
}
Expand Down
1 change: 0 additions & 1 deletion servo-tidy.toml
Expand Up @@ -39,7 +39,6 @@ num = [
# Ignored packages with duplicated versions
packages = [
"bitflags",
"lazy_static",
"winapi",
"syn",
"quote",
Expand Down

0 comments on commit 6c6a415

Please sign in to comment.