mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
This commit is contained in:
parent
b756375637
commit
e8c12c1c6d
17 changed files with 23 additions and 30 deletions
|
@ -343,7 +343,7 @@ impl ImageCache {
|
|||
(ResponseAction::HeadersAvailable(_), _) => {}
|
||||
(ResponseAction::DataAvailable(data), _) => {
|
||||
let pending_load = self.pending_loads.get_by_key_mut(&msg.key).unwrap();
|
||||
pending_load.bytes.push_all(&data);
|
||||
pending_load.bytes.extend_from_slice(&data);
|
||||
}
|
||||
(ResponseAction::ResponseComplete(result), key) => {
|
||||
match result {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue