mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
Cleanup dynamic freeze scope artificially extended warnings
This commit is contained in:
parent
3503cb3df9
commit
c6c9533cd1
3 changed files with 25 additions and 17 deletions
|
@ -135,7 +135,7 @@ pub impl LocalImageCache {
|
|||
}
|
||||
|
||||
priv fn get_state(&self, url: &Url) -> @mut ImageState {
|
||||
*do self.state_map.find_or_insert_with(url.clone()) |_| {
|
||||
let state = do self.state_map.find_or_insert_with(url.clone()) |_| {
|
||||
let new_state = @mut ImageState {
|
||||
prefetched: false,
|
||||
decoded: false,
|
||||
|
@ -143,7 +143,8 @@ pub impl LocalImageCache {
|
|||
last_response: ImageNotReady
|
||||
};
|
||||
new_state
|
||||
}
|
||||
};
|
||||
*state // Unborrowing the state
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue