mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-01 18:35:04 -06:00
chore(ui): simplify render request boolean for clippy
This commit is contained in:
@@ -658,10 +658,7 @@ impl Renderer {
|
||||
if let Some(&(k, p)) = self.pending.get(&slot) {
|
||||
return k != key || (p != priority && self.is_queued(slot));
|
||||
}
|
||||
if self.textures.get(&slot).is_some_and(|t| t.key == key) || self.failed.get(&slot).is_some_and(|f| f.0 == key && f.2 == self.catalog_rev) {
|
||||
return false;
|
||||
}
|
||||
true
|
||||
!(self.textures.get(&slot).is_some_and(|t| t.key == key) || self.failed.get(&slot).is_some_and(|f| f.0 == key && f.2 == self.catalog_rev))
|
||||
}
|
||||
/// Free a view slot's texture and stage cache (the view is no longer shown).
|
||||
pub fn release(&mut self, slot: Slot) {
|
||||
|
||||
Reference in New Issue
Block a user