mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -74,10 +74,9 @@ impl GPUQueueMethods for GPUQueue {
|
|||
/// <https://gpuweb.github.io/gpuweb/#dom-gpuqueue-submit>
|
||||
fn Submit(&self, command_buffers: Vec<DomRoot<GPUCommandBuffer>>) {
|
||||
let valid = command_buffers.iter().all(|cb| {
|
||||
cb.buffers().iter().all(|b| match b.state() {
|
||||
GPUBufferState::Unmapped => true,
|
||||
_ => false,
|
||||
})
|
||||
cb.buffers()
|
||||
.iter()
|
||||
.all(|b| matches!(b.state(), GPUBufferState::Unmapped))
|
||||
});
|
||||
let scope_id = self.device.borrow().as_ref().unwrap().use_current_scope();
|
||||
if !valid {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue