From 55f6c2760baf53277066410f99ad4b9d3bb6bfff Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 26 Nov 2026 23:04:24 -0800 Subject: [PATCH] Runtime tests: the part builder test's shape names its types, as clippy asks Clippy under --cfg m2v_gpu at 9737a44d98 (job m3-max-76168) refused plane_parts' `shape` return type as too complex (clippy::type_complexity, denied by -D warnings). The parts and the hand-overs asked for are now named types. No test changes what it checks. --- crates/metal2vulkan-runtime/src/tests/plane_parts.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/plane_parts.rs b/crates/metal2vulkan-runtime/src/tests/plane_parts.rs index 3d8e02f60..118852a63 100644 --- a/crates/metal2vulkan-runtime/src/tests/plane_parts.rs +++ b/crates/metal2vulkan-runtime/src/tests/plane_parts.rs @@ -30,6 +30,12 @@ fn staged(raw: u64, signals: &[u64]) -> Staged { /// An info as its command buffers and its signals, each signal as its semaphore and value. type Info = (Vec, Vec<(u64, u64)>); +/// The parts as their values and infos. +type Parts = Vec<(u64, Vec)>; + +/// The hand-overs asked for, as their planes and whether each acquires. +type Asked = Vec<(Vec, bool)>; + /// The parts of `segments`, the first `ahead` of them uploads, at the last value 10, each as its /// value and its infos; with each hand-over asked for, as its planes and whether it acquires. /// Each hand-over's command buffer is numbered from 100 in the order asked. @@ -38,7 +44,7 @@ fn shape( ahead: usize, leads: &[usize], planes: &[Vec], -) -> (Vec<(u64, Vec)>, Vec<(Vec, bool)>) { +) -> (Parts, Asked) { let mut asked = Vec::new(); let made = parts( segments,