Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all

This commit is contained in:
Tetsuharu OHZEKI 2015-12-10 15:58:12 -05:00
parent b756375637
commit e8c12c1c6d
17 changed files with 23 additions and 30 deletions

View file

@ -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 {