Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui_wgpu: Remove redundant match arms for backend priority (#56032)
Xiaobo Liubfe5dfb4a1a4
diff --git a/crates/gpui_wgpu/src/wgpu_context.rs b/crates/gpui_wgpu/src/wgpu_context.rsindex d25e1dc71c9..9dd55993934 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,};