aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-12 20:01:38 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-12 20:05:14 +0100
commite921ce859e0b29fefbeb2f1ad0435faa0730aa79 (patch)
tree5fce96427e4a085621528605162a8b7394da91e7 /components/script/dom/blob.rs
parentfab80925818e53bfb92ffa2684a6834bb9f70f29 (diff)
downloadservo-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.rs2
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())
}
}