refactor: Global::poll_device: use &= for all_queue_empty

This commit is contained in:
Erich Gubler 2024-03-12 10:16:37 -04:00
parent e3b23a6c62
commit fe28eda3e0

View File

@ -2148,7 +2148,7 @@ impl Global {
let fence = device.fence.read();
let fence = fence.as_ref().unwrap();
let (cbs, queue_empty) = device.maintain(fence, maintain)?;
all_queue_empty = all_queue_empty && queue_empty;
all_queue_empty &= queue_empty;
closures.extend(cbs);