diff options
Diffstat (limited to 'src/components/main/servo.rs')
-rwxr-xr-x | src/components/main/servo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs index 746b7d2e260..d07f24f15d2 100755 --- a/src/components/main/servo.rs +++ b/src/components/main/servo.rs @@ -137,7 +137,7 @@ fn start(argc: int, argv: **u8) -> int { #[no_mangle] pub extern "C" fn android_start(argc: int, argv: **u8) -> int { native::start(argc, argv, proc() { - let mut args: Vec<~str> = Vec::new(); + let mut args: Vec<~str> = vec!(); for i in range(0u, argc as uint) { unsafe { args.push(str::raw::from_c_str(*argv.offset(i as int) as *i8)); @@ -193,7 +193,7 @@ fn run(opts: opts::Opts) { // As a hack for easier command-line testing, // assume that data URLs are not URL-encoded. Url::new("data".to_owned(), None, "".to_owned(), None, - filename.slice_from(5).to_owned(), Vec::new(), None) + filename.slice_from(5).to_owned(), vec!(), None) } else { parse_url(*filename, None) }; |