mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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
|
@ -20,6 +20,7 @@ use hyper::method::Method;
|
|||
use hyper::mime::{Mime, Attr};
|
||||
use url::Url;
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::comm::{channel, Receiver, Sender};
|
||||
|
||||
pub enum ControlMsg {
|
||||
|
@ -86,7 +87,7 @@ impl Metadata {
|
|||
charset: None,
|
||||
headers: None,
|
||||
// http://fetch.spec.whatwg.org/#concept-response-status-message
|
||||
status: Some(RawStatus(200, "OK".into_string()))
|
||||
status: Some(RawStatus(200, "OK".to_owned()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue