aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/urlhelper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/urlhelper.rs')
-rw-r--r--components/script/dom/urlhelper.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/urlhelper.rs b/components/script/dom/urlhelper.rs
index 251f8283e1e..8f3a005127d 100644
--- a/components/script/dom/urlhelper.rs
+++ b/components/script/dom/urlhelper.rs
@@ -14,16 +14,16 @@ impl UrlHelper {
pub fn Search(url: &Url) -> DOMString {
match url.query {
- None => "".to_string(),
- Some(ref query) if query.as_slice() == "" => "".to_string(),
+ None => "".into_string(),
+ Some(ref query) if query.as_slice() == "" => "".into_string(),
Some(ref query) => format!("?{}", query)
}
}
pub fn Hash(url: &Url) -> DOMString {
match url.fragment {
- None => "".to_string(),
- Some(ref hash) if hash.as_slice() == "" => "".to_string(),
+ None => "".into_string(),
+ Some(ref hash) if hash.as_slice() == "" => "".into_string(),
Some(ref hash) => format!("#{}", hash)
}
}