mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #7489 - psdh:clearClone, r=jdm
removing unnecessary clones Fixes #7485 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7489) <!-- Reviewable:end -->
This commit is contained in:
commit
696ccf6794
1 changed files with 3 additions and 3 deletions
|
@ -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\", \
|
||||
|
@ -200,7 +200,7 @@ impl HttpRequestFactory for NetworkHttpRequestFactory {
|
|||
) => {
|
||||
return Err(
|
||||
LoadError::Ssl(
|
||||
url.clone(),
|
||||
url,
|
||||
format!("ssl error {:?}: {:?} {:?}",
|
||||
io_error.kind(),
|
||||
io_error.description(),
|
||||
|
@ -209,7 +209,7 @@ impl HttpRequestFactory for NetworkHttpRequestFactory {
|
|||
)
|
||||
},
|
||||
Err(e) => {
|
||||
return Err(LoadError::Connection(url.clone(), e.description().to_string()))
|
||||
return Err(LoadError::Connection(url, e.description().to_string()))
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue