servo: Merge #8922 - Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all (from saneyuki:warning); r=mbrubeck
Source-Repo: https://github.com/servo/servo Source-Revision: d01233a7b417c87b18d31f10709ed83141887b94
This commit is contained in:
@@ -140,7 +140,7 @@ impl BlobMethods for Blob {
|
||||
let start = relativeStart.to_usize().unwrap();
|
||||
let end = (relativeStart + span).to_usize().unwrap();
|
||||
let mut bytes: Vec<u8> = Vec::new();
|
||||
bytes.push_all(&vec[start..end]);
|
||||
bytes.extend_from_slice(&vec[start..end]);
|
||||
Blob::new(global.r(), Some(bytes), &relativeContentType)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user