mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Replace the remaining to_string calls by into_string calls.
This commit is contained in:
parent
37a97f3273
commit
b6117a57aa
12 changed files with 43 additions and 42 deletions
|
@ -107,7 +107,7 @@ fn browser_host_create(window_info: &cef_window_info_t,
|
|||
callback_executed: bool)
|
||||
-> CefBrowser {
|
||||
let mut urls = Vec::new();
|
||||
urls.push("http://s27.postimg.org/vqbtrolyr/servo.jpg".to_string());
|
||||
urls.push("http://s27.postimg.org/vqbtrolyr/servo.jpg".into_string());
|
||||
let mut opts = opts::default_opts();
|
||||
opts.urls = urls;
|
||||
let browser = ServoCefBrowser::new(window_info, client).as_cef_interface();
|
||||
|
|
|
@ -76,7 +76,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
|
|||
|
||||
message_queue.replace(Some(RefCell::new(Vec::new())));
|
||||
|
||||
let urls = vec![HOME_URL.to_string()];
|
||||
let urls = vec![HOME_URL.into_string()];
|
||||
opts::set_opts(opts::Opts {
|
||||
urls: urls,
|
||||
n_paint_threads: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue