From c159a2004d3c38f12f841e51eaa637ffc3b2f4b3 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 21:26:09 -0800 Subject: [PATCH] harness: the completions' times by place are a type of their own, for clippy's type_complexity --- crates/metal2vulkan-harness/src/run.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-harness/src/run.rs b/crates/metal2vulkan-harness/src/run.rs index 77914d5d2..58339b103 100644 --- a/crates/metal2vulkan-harness/src/run.rs +++ b/crates/metal2vulkan-harness/src/run.rs @@ -186,6 +186,9 @@ pub struct Report { pub warmup: Warmup, } +/// Microseconds of each timed run, one list per command buffer's place in its run. +type ByPlace = Vec>; + /// The commit-to-complete times and lateness that the completed handlers of a plan's timed /// command buffers report ([`Plan::commit_to_complete`]). #[derive(Default)] @@ -212,7 +215,7 @@ impl Completions { /// The commit-to-complete times and the lateness of `runs` runs of `places` command buffers /// each, by place, once their handlers have run: a completed handler may run after the wait /// for its command buffer returns. An error where fewer have run within [`HANDLERS_RUN`]. - fn wait(&self, runs: usize, places: usize) -> Result<(Vec>, Vec>)> { + fn wait(&self, runs: usize, places: usize) -> Result<(ByPlace, ByPlace)> { let count = runs * places; let times = self.times.lock().unwrap_or_else(PoisonError::into_inner); let (times, _) = (self.reported)