aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-20 14:45:36 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-20 14:49:07 +0100
commit01ed338746ae71493984259335197e6b66daec45 (patch)
treeb568699de2c64d6f4eb21b197fd648c354d0ed37 /components/script/dom/blob.rs
parent2d5b0e085571594e7da2ee519605dd6fac2caa54 (diff)
downloadservo-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.rs9
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()
}
}
};