mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Move to to_owned rather than into_string.
into_string has been removed from Rust.
This commit is contained in:
parent
2d5b0e0855
commit
01ed338746
67 changed files with 473 additions and 383 deletions
|
@ -41,6 +41,9 @@ use servo::Browser;
|
|||
#[cfg(not(test))]
|
||||
use compositing::windowing::WindowEvent;
|
||||
|
||||
#[cfg(target_os="android")]
|
||||
use std::borrow::ToOwned;
|
||||
|
||||
#[cfg(not(any(test,target_os="android")))]
|
||||
use std::os;
|
||||
|
||||
|
@ -55,8 +58,8 @@ android_start!(main)
|
|||
#[cfg(target_os="android")]
|
||||
fn get_args() -> Vec<String> {
|
||||
vec![
|
||||
"servo".into_string(),
|
||||
"http://en.wikipedia.org/wiki/Rust".into_string()
|
||||
"servo".to_owned(),
|
||||
"http://en.wikipedia.org/wiki/Rust".to_owned()
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue