Skip to content

Commit

Permalink
Removing unnecessary url clones
Browse files Browse the repository at this point in the history
  • Loading branch information
psdh committed Sep 1, 2015
1 parent 849ee8f commit afcda46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/net/http_loader.rs
Expand Up @@ -200,7 +200,7 @@ impl HttpRequestFactory for NetworkHttpRequestFactory {
) => {
return Err(
LoadError::Ssl(
url.clone(),
url,
format!("ssl error {:?}: {:?} {:?}",
io_error.kind(),
io_error.description(),
Expand All @@ -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()))
}
};

Expand Down

0 comments on commit afcda46

Please sign in to comment.