script: to_string() -> into_string()

This commit is contained in:
Manish Goregaokar 2014-12-14 04:16:34 +05:30 committed by Ms2ger
parent 475ff4dcb7
commit e9d1740e19
39 changed files with 152 additions and 152 deletions

View file

@ -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)
}
}