From ecb8284ff79fefa8afb58f98abcd8cd23d9b024c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 19:01:53 -0800 Subject: [PATCH] rt tests: the command tests' unmaps are a named type, which clippy's type_complexity asks for Check 49376 at 96340f0f9d: clippy under --cfg m2v_gpu and m2v_cpu_icd refused Hook::unmaps's return type (tests/command.rs). The rest of that check passed: clippy with all features and none, the rt and harness tests (135 passed), the API tests, the docs and the archives. --- crates/metal2vulkan-rt/src/tests/command.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/metal2vulkan-rt/src/tests/command.rs b/crates/metal2vulkan-rt/src/tests/command.rs index cdde11a89..aaa527dbf 100644 --- a/crates/metal2vulkan-rt/src/tests/command.rs +++ b/crates/metal2vulkan-rt/src/tests/command.rs @@ -1845,16 +1845,13 @@ pub(crate) mod on_device { } } + /// Unmaps: each allocation and the name of the thread its unmap ran on. + type Unmaps = Vec<(AllocationId, Option)>; + impl Hook { /// The unmaps, sorted, and what they are where each allocation mapped was unmapped once, /// on `thread`. - fn unmaps( - &self, - thread: Option<&str>, - ) -> ( - Vec<(AllocationId, Option)>, - Vec<(AllocationId, Option)>, - ) { + fn unmaps(&self, thread: Option<&str>) -> (Unmaps, Unmaps) { let mut unmapped = lock(&self.unmapped).clone(); unmapped.sort(); let mut mapped: Vec<_> = (lock(&self.mapped).iter())