mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use &str instead ~str in make_url
This commit is contained in:
parent
6662fb0c32
commit
74301f71e6
1 changed files with 1 additions and 1 deletions
|
@ -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>) -> Url {
|
||||
pub fn make_url(str_url: &str, current_url: Option<Url>) -> 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue