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.
This commit is contained in:
Anees Iqbal committed 2026-11-18 19:07:16 -08:00
1 parent 0d7064cad4
commit ecb8284ff7
1 file changed
+4 -7
+4 -7
View File
@@ -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<String>)>;
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<String>)>,
Vec<(AllocationId, Option<String>)>,
) {
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())