From 6469bd9bc04df1c8f308d7614917b2ae780d5571 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 20:56:13 -0800 Subject: [PATCH] Runtime: a commit drains the buffers made since the last in place Clippy's drain_collect named the collect of the made entries into a vector of their own; the loop now drains them directly, its other borrows being of the change list's other fields. Verified: clippy of the conformance crate's dependencies in job m3-max-81865 (CPU-only build) failed on it; the clippy job follows. --- crates/metal2vulkan-runtime/src/capture.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/capture.rs b/crates/metal2vulkan-runtime/src/capture.rs index 1308dff94..150b66cf5 100644 --- a/crates/metal2vulkan-runtime/src/capture.rs +++ b/crates/metal2vulkan-runtime/src/capture.rs @@ -206,8 +206,7 @@ impl Changes { taken.dedup(); } let mut modified = Vec::with_capacity(taken.len() + self.made.len()); - let made: Vec = self.made.drain(..).collect(); - for made in made { + for made in self.made.drain(..) { let index = self.at.get(&(Weak::as_ptr(&made.buffer) as usize)).copied(); match index.filter(|index| taken.binary_search(index).is_ok()) { Some(index) => {