From 11bfe5f0721ad712a00cb5e64411105272fec1fc Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 28 Jan 2025 21:38:57 +0100 Subject: [PATCH] Fix CI (#259) Appease Clippy, and pin objc2-encode for MSRV. --- .github/workflows/ci.yml | 1 + examples/drm.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2f96e6..99b1ef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,6 +100,7 @@ jobs: run: | cargo update -p ahash --precise 0.8.7 cargo update -p bumpalo --precise 3.14.0 + cargo update -p objc2-encode --precise 4.0.3 - name: Build crate shell: bash diff --git a/examples/drm.rs b/examples/drm.rs index a5f6de3..4d46d06 100644 --- a/examples/drm.rs +++ b/examples/drm.rs @@ -62,7 +62,7 @@ mod imple { let planes = planes .iter() .filter(|&&plane| { - device.get_plane(plane).map_or(false, |plane| { + device.get_plane(plane).is_ok_and(|plane| { let crtcs = handles.filter_crtcs(plane.possible_crtcs()); crtcs.contains(&crtc.handle()) }) @@ -77,7 +77,7 @@ mod imple { let (ids, vals) = props.as_props_and_values(); for (&id, &val) in ids.iter().zip(vals.iter()) { if let Ok(info) = device.get_property(id) { - if info.name().to_str().map_or(false, |x| x == "type") { + if info.name().to_str() == Ok("type") { return val == PlaneType::Primary as u32 as u64; } }