From 74301f71e6b1e430b76611d9770c00a25e14cc88 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 23 Jan 2014 21:56:59 +0200 Subject: [PATCH] Use &str instead ~str in make_url --- src/components/util/url.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/util/url.rs b/src/components/util/url.rs index a3677dd6415..20006eca6e0 100644 --- a/src/components/util/url.rs +++ b/src/components/util/url.rs @@ -17,7 +17,7 @@ Create a URL object from a string. Does various helpful browsery things like */ // TODO: about:failure-> -pub fn make_url(str_url: ~str, current_url: Option) -> Url { +pub fn make_url(str_url: &str, current_url: Option) -> Url { let str_url = str_url.trim_chars(& &[' ', '\t', '\n', '\r', '\x0C']).to_owned(); let schm = url::get_scheme(str_url); let str_url = match schm {