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<Capabilities, BelowFloor>::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.
This commit is contained in:
Anees Iqbal committed 2026-11-23 01:08:45 -08:00
1 parent c01b2e02dc
commit 3fa6edff99
1 file changed
+1 -1
@@ -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,
[