mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Removing unnecessary url clones
This commit is contained in:
parent
849ee8fbdf
commit
afcda46cbe
1 changed files with 2 additions and 2 deletions
|
@ -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