From 8c19e8bf97c8f5ca19c30aed68171dd078e280f9 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 04:36:34 -0800 Subject: [PATCH] ycbcr_textures: Kernels::quantizes asks the list with contains, as clippy's manual_contains asks (cherry picked from commit ec5bbee96a13ac7496f1088bb6fc9b3885c11008) --- .../src/runtime_lane/ycbcr_textures.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/ycbcr_textures.rs b/crates/metal2vulkan-validation/src/runtime_lane/ycbcr_textures.rs index 90b6c7af4..e02369107 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/ycbcr_textures.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/ycbcr_textures.rs @@ -533,9 +533,7 @@ impl Kernels { /// Whether the `half` kernel `entry`'s stage rounds by the device's quantize /// ([`Kernels::quantizing`]). fn quantizes(&self, entry: &str) -> bool { - self.quantizing - .iter() - .any(|&quantizing| quantizing == entry) + self.quantizing.contains(&entry) } }