finished moving out render_state
This commit is contained in:
1 parent
79813db3ba
commit
06dd015092
26 files changed
+496
-220
No files matched your search
@@ -104,10 +104,10 @@ impl Widgets {
|
||||
self.vec.get_mut(id.id())
|
||||
}
|
||||
|
||||
pub fn free(&mut self) {
|
||||
for id in self.recv.try_iter() {
|
||||
self.vec.free(id.id());
|
||||
}
|
||||
pub fn free_next(&mut self) -> Option<WidgetId> {
|
||||
let next = self.recv.try_recv().ok()?;
|
||||
self.vec.free(next);
|
||||
Some(next)
|
||||
}
|
||||
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
|
||||
Reference in new issue
Block a user