diff options
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index e76ab04d92b..103fc2a1f78 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -129,7 +129,7 @@ impl<'a> BlobMethods for JSRef<'a, Blob> { let start = relativeStart.to_uint().unwrap(); let end = (relativeStart + span).to_uint().unwrap(); let mut bytes: Vec<u8> = Vec::new(); - bytes.push_all(vec.slice(start, end)); + bytes.push_all(&vec[start..end]); Blob::new(global.r(), Some(bytes), relativeContentType.as_slice()) } } |