From afcda46cbe7a925c9b5bd5969ec24d042b92a9ff Mon Sep 17 00:00:00 2001 From: Prabhjyot Singh Sodhi Date: Tue, 1 Sep 2015 13:44:54 +0530 Subject: [PATCH] Removing unnecessary url clones --- components/net/http_loader.rs | 4 ++-- 1 file 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())) } };