mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stop using IndexMut on HashMap.
This feature was removed in https://github.com/rust-lang/rust/pull/23559.
This commit is contained in:
parent
77f653da2c
commit
c95fc0c923
2 changed files with 5 additions and 5 deletions
|
@ -109,7 +109,7 @@ impl BufferMap {
|
|||
}
|
||||
};
|
||||
if {
|
||||
let list = &mut self.map[old_key].buffers;
|
||||
let list = &mut self.map.get_mut(&old_key).unwrap().buffers;
|
||||
let condemned_buffer = list.pop().take().unwrap();
|
||||
self.mem -= condemned_buffer.get_mem();
|
||||
condemned_buffer.destroy(graphics_context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue