diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-02-12 20:01:38 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-12 20:05:14 +0100 |
commit | e921ce859e0b29fefbeb2f1ad0435faa0730aa79 (patch) | |
tree | 5fce96427e4a085621528605162a8b7394da91e7 /components/script/dom/blob.rs | |
parent | fab80925818e53bfb92ffa2684a6834bb9f70f29 (diff) | |
download | servo-e921ce859e0b29fefbeb2f1ad0435faa0730aa79.tar.gz servo-e921ce859e0b29fefbeb2f1ad0435faa0730aa79.zip |
Fix some warnings in script.
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()) } } |