From 3fa6edff99c4f88ac691ef5fcffbddadbae1ab0c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 01:08:45 -0800 Subject: [PATCH] Floor test: a check below the floor reads its error by expect_err What: tests/floor.rs reads decide()'s refusal with expect_err in place of err().expect. Why: with floor::Capabilities now Debug (c01b2e02dc), Result::expect_err is available, and clippy's err_expect lint refuses the old spelling under -D warnings (potluck job m3-max-70433: clippy exit 101 on that line alone, plain and under m2v_gpu). Verified: the check job dispatched with this commit. --- crates/metal2vulkan-runtime/src/tests/floor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/floor.rs b/crates/metal2vulkan-runtime/src/tests/floor.rs index 2de7f256d..98c8b3047 100644 --- a/crates/metal2vulkan-runtime/src/tests/floor.rs +++ b/crates/metal2vulkan-runtime/src/tests/floor.rs @@ -1178,7 +1178,7 @@ fn a_device_that_lists_the_portability_subset_is_asked_for_its_features() { let mut device = at_the_floor(); device.extensions.push(subset.to_owned()); - let below = decide(&device).err().expect("below the floor"); + let below = decide(&device).expect_err("below the floor"); assert_eq!( below.missing, [