aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-09-01 13:44:54 +0530
committerPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2015-09-01 13:44:54 +0530
commitafcda46cbe7a925c9b5bd5969ec24d042b92a9ff (patch)
tree696288a5ddfcbdb5716e212838e41f81a8eeff07
parent849ee8fbdfba869f03b9083bb856f401c72eb0c3 (diff)
downloadservo-afcda46cbe7a925c9b5bd5969ec24d042b92a9ff.tar.gz
servo-afcda46cbe7a925c9b5bd5969ec24d042b92a9ff.zip
Removing unnecessary url clones
-rw-r--r--components/net/http_loader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index 41e4010ada1..4c257513526 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -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()))
}
};