Move to to_owned rather than into_string.

into_string has been removed from Rust.
This commit is contained in:
Ms2ger 2015-01-20 14:45:36 +01:00
parent 2d5b0e0855
commit 01ed338746
67 changed files with 473 additions and 383 deletions

View file

@ -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()
]
}