Fix some warnings in script.

This commit is contained in:
Ms2ger 2015-02-12 20:01:38 +01:00
parent fab8092581
commit e921ce859e
12 changed files with 29 additions and 18 deletions

View file

@ -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())
}
}