mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix two more warnings in WebRender (#30867)
These appeared after switching to the latest Rust stable release.
This commit is contained in:
parent
17f3c45d4f
commit
2fcbcb4b55
3 changed files with 23 additions and 2 deletions
|
@ -58,13 +58,13 @@ pub struct DisplayItemCache {
|
|||
|
||||
impl DisplayItemCache {
|
||||
fn add_item(&mut self, key: ItemKey, item: CachedDisplayItem) {
|
||||
let mut entry = &mut self.entries[key as usize];
|
||||
let entry = &mut self.entries[key as usize];
|
||||
entry.items.push(item);
|
||||
entry.occupied = true;
|
||||
}
|
||||
|
||||
fn clear_entry(&mut self, key: ItemKey) {
|
||||
let mut entry = &mut self.entries[key as usize];
|
||||
let entry = &mut self.entries[key as usize];
|
||||
entry.items.clear();
|
||||
entry.occupied = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue