Upgrade to rustc d2b30f7d3 2014-09-23

This commit is contained in:
Simon Sapin 2014-09-25 16:01:21 +01:00
parent a58324f25b
commit b3245fa407
51 changed files with 227 additions and 197 deletions

View file

@ -16,7 +16,7 @@ impl UrlHelper {
match url.query {
None => "".to_string(),
Some(ref query) if query.as_slice() == "" => "".to_string(),
Some(ref query) => "?".to_string().append(query.as_slice())
Some(ref query) => format!("?{}", query)
}
}
@ -24,7 +24,7 @@ impl UrlHelper {
match url.fragment {
None => "".to_string(),
Some(ref hash) if hash.as_slice() == "" => "".to_string(),
Some(ref hash) => "#".to_string().append(hash.as_slice())
Some(ref hash) => format!("#{}", hash)
}
}
}