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/script/dom/blob.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/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index f4794d9f6fe..782fff57c9d 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -11,6 +11,7 @@ use dom::bindings::codegen::Bindings::BlobBinding; use dom::bindings::codegen::Bindings::BlobBinding::BlobMethods; use servo_util::str::DOMString; +use std::borrow::ToOwned; use std::cmp::{min, max}; use std::ascii::AsciiExt; @@ -43,7 +44,7 @@ impl Blob { reflector_: Reflector::new(), type_: type_, bytes: bytes, - typeString: typeString.into_string(), + typeString: typeString.to_owned(), global: GlobalField::from_rooted(&global) //isClosed_: false } @@ -109,12 +110,12 @@ impl<'a> BlobMethods for JSRef<'a, Blob> { } }; let relativeContentType = match contentType { - None => "".into_string(), + None => "".to_owned(), Some(str) => { if is_ascii_printable(&str) { - str.as_slice().to_ascii_lower().into_string() + str.as_slice().to_ascii_lower().to_owned() } else { - "".into_string() + "".to_owned() } } }; |