diff options
author | Achal Shah <achal@uber.com> | 2016-06-16 23:29:09 -0700 |
---|---|---|
committer | Achal Shah <achal@uber.com> | 2016-06-17 07:43:11 -0700 |
commit | af325a9a3a8685f3911dd30169c11b2252432ab2 (patch) | |
tree | 1df55893fd5ae860cbc055105bf18e8abc540100 /components/script/dom/file.rs | |
parent | 3b98ce0dcce8e3e0b411368fc0a0b1043d91377a (diff) | |
download | servo-af325a9a3a8685f3911dd30169c11b2252432ab2.tar.gz servo-af325a9a3a8685f3911dd30169c11b2252432ab2.zip |
Update Blob::{new, new_inherited} to take Strings
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r-- | components/script/dom/file.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index c0ddd74233f..86e8888a88f 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -26,7 +26,7 @@ impl File { fn new_inherited(blob_impl: BlobImpl, name: DOMString, modified: Option<i64>, typeString: &str) -> File { File { - blob: Blob::new_inherited(blob_impl, typeString), + blob: Blob::new_inherited(blob_impl, typeString.to_owned()), name: name, // https://w3c.github.io/FileAPI/#dfn-lastModified modified: match modified { |