diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-20 14:45:36 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-20 14:49:07 +0100 |
commit | 01ed338746ae71493984259335197e6b66daec45 (patch) | |
tree | b568699de2c64d6f4eb21b197fd648c354d0ed37 /components/net/about_loader.rs | |
parent | 2d5b0e085571594e7da2ee519605dd6fac2caa54 (diff) | |
download | servo-01ed338746ae71493984259335197e6b66daec45.tar.gz servo-01ed338746ae71493984259335197e6b66daec45.zip |
Move to to_owned rather than into_string.
into_string has been removed from Rust.
Diffstat (limited to 'components/net/about_loader.rs')
-rw-r--r-- | components/net/about_loader.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/net/about_loader.rs b/components/net/about_loader.rs index bedb21b573e..4ff19586e2a 100644 --- a/components/net/about_loader.rs +++ b/components/net/about_loader.rs @@ -10,6 +10,7 @@ use url::Url; use hyper::http::RawStatus; use servo_util::resource_files::resources_dir_path; +use std::borrow::ToOwned; use std::io::fs::PathExtensions; pub fn factory(mut load_data: LoadData, start_chan: Sender<TargetedLoadResponse>) { @@ -24,7 +25,7 @@ pub fn factory(mut load_data: LoadData, start_chan: Sender<TargetedLoadResponse> content_type: Some(("text".to_string(), "html".to_string())), charset: Some("utf-8".to_string()), headers: None, - status: Some(RawStatus(200, "OK".into_string())) + status: Some(RawStatus(200, "OK".to_owned())) }); chan.send(Done(Ok(()))); return |