From bd39e03eeb3d369e8189135326c733bbe5a3bb10 Mon Sep 17 00:00:00 2001 From: Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:58:12 +0530 Subject: changed `match` to 'matches!' (#31850) --- components/script/dom/gpuqueue.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'components/script/dom/gpuqueue.rs') diff --git a/components/script/dom/gpuqueue.rs b/components/script/dom/gpuqueue.rs index de8766c3365..3acecce9c3e 100644 --- a/components/script/dom/gpuqueue.rs +++ b/components/script/dom/gpuqueue.rs @@ -74,10 +74,9 @@ impl GPUQueueMethods for GPUQueue { /// fn Submit(&self, command_buffers: Vec>) { 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 { -- cgit v1.2.3