Skip to content

Commit

Permalink
removing unnecessary clones
Browse files Browse the repository at this point in the history
  • Loading branch information
psdh committed Sep 1, 2015
1 parent a4d5c8c commit 849ee8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/net/http_loader.rs
Expand Up @@ -183,7 +183,7 @@ impl HttpRequestFactory for NetworkHttpRequestFactory {
context.set_CA_file(&resources_dir_path().join("certs")).unwrap();

let connector = HttpsConnector::new(Openssl { context: Arc::new(context) });
let connection = Request::with_connector(method.clone(), url.clone(), &connector);
let connection = Request::with_connector(method, url.clone(), &connector);

let ssl_err_string = "Some(OpenSslErrors([UnknownError { library: \"SSL routines\", \
function: \"SSL3_GET_SERVER_CERTIFICATE\", \
Expand Down

0 comments on commit 849ee8f

Please sign in to comment.