Stop using IndexMut on HashMap.

This feature was removed in https://github.com/rust-lang/rust/pull/23559.
This commit is contained in:
Ms2ger 2015-05-01 21:16:20 +02:00
parent 77f653da2c
commit c95fc0c923
2 changed files with 5 additions and 5 deletions

View file

@ -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);