From bfe5dfb4a1a47b60212f5a19259973b359cbb8e8 Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Thu, 7 May 2026 23:07:36 +0800 Subject: [PATCH] gpui_wgpu: Remove redundant match arms for backend priority (#56032) Release Notes: - N/A --- crates/gpui_wgpu/src/wgpu_context.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/gpui_wgpu/src/wgpu_context.rs b/crates/gpui_wgpu/src/wgpu_context.rs index d25e1dc71c982a8f4d9d2350590313bd9f6baa61..9dd559939340b9867ebd3701fc695b7110816e9b 100644 --- a/crates/gpui_wgpu/src/wgpu_context.rs +++ b/crates/gpui_wgpu/src/wgpu_context.rs @@ -278,9 +278,7 @@ impl WgpuContext { }; let backend_priority: u8 = match info.backend { - wgpu::Backend::Vulkan => 0, - wgpu::Backend::Metal => 0, - wgpu::Backend::Dx12 => 0, + wgpu::Backend::Vulkan | wgpu::Backend::Metal | wgpu::Backend::Dx12 => 0, _ => 1, };