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
|
@ -4,6 +4,7 @@
|
|||
|
||||
use opts;
|
||||
use std::any::Any;
|
||||
use std::borrow::ToOwned;
|
||||
#[cfg(not(test))]
|
||||
use std::io::File;
|
||||
//use std::mem;
|
||||
|
@ -83,7 +84,7 @@ pub fn instrument(f: proc()) {
|
|||
let task = Local::borrow(None::<Task>);
|
||||
match task.name {
|
||||
Some(ref name) => name.to_string(),
|
||||
None => "unknown".into_string(),
|
||||
None => "unknown".to_owned(),
|
||||
}
|
||||
};
|
||||
let stats = TaskStats {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue