Work around compiler bug causing crashes in image cache

This commit is contained in:
Brian Anderson 2013-02-12 14:09:28 -08:00
parent 726bae7fb4
commit 68af9bf6b9

View file

@ -377,7 +377,8 @@ impl ImageCache {
priv fn purge_waiters(url: Url, f: fn() -> ImageResponseMsg) { priv fn purge_waiters(url: Url, f: fn() -> ImageResponseMsg) {
match self.wait_map.find(copy url) { match self.wait_map.find(copy url) {
Some(@ref mut waiters) => { Some(waiters) => {
let waiters = &mut *waiters;
let mut new_waiters = ~[]; let mut new_waiters = ~[];
new_waiters <-> *waiters; new_waiters <-> *waiters;