opts.rs: don't accept multiple URLs. Fixes #5520.

Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.

servo/lib.rs + gonk/src/lib.rs: no need for a block scope.

cef: fix compiler errors.

- remove the use of `mut` since it's not needed.
- use `to_owned` instead of `to_string` because it's more efficient.
This commit is contained in:
Jag Talon 2015-04-04 18:00:00 -04:00
parent c070ad6196
commit 74cd4cd56a
5 changed files with 28 additions and 38 deletions

View file

@ -70,7 +70,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
};
let mut temp_opts = opts::default_opts();
temp_opts.urls = vec![HOME_URL.to_owned()];
temp_opts.url = HOME_URL.to_owned();
temp_opts.paint_threads = rendering_threads;
temp_opts.layout_threads = rendering_threads;
temp_opts.headless = false;
@ -137,4 +137,3 @@ pub extern "C" fn cef_log(_file: *const c_char,
pub extern "C" fn cef_get_min_log_level() -> c_int {
0
}