Skip to content

Commit 11bfe5f

Browse files
authored
Fix CI (#259)
Appease Clippy, and pin objc2-encode for MSRV.
1 parent 00a1a21 commit 11bfe5f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
run: |
101101
cargo update -p ahash --precise 0.8.7
102102
cargo update -p bumpalo --precise 3.14.0
103+
cargo update -p objc2-encode --precise 4.0.3
103104
104105
- name: Build crate
105106
shell: bash

examples/drm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mod imple {
6262
let planes = planes
6363
.iter()
6464
.filter(|&&plane| {
65-
device.get_plane(plane).map_or(false, |plane| {
65+
device.get_plane(plane).is_ok_and(|plane| {
6666
let crtcs = handles.filter_crtcs(plane.possible_crtcs());
6767
crtcs.contains(&crtc.handle())
6868
})
@@ -77,7 +77,7 @@ mod imple {
7777
let (ids, vals) = props.as_props_and_values();
7878
for (&id, &val) in ids.iter().zip(vals.iter()) {
7979
if let Ok(info) = device.get_property(id) {
80-
if info.name().to_str().map_or(false, |x| x == "type") {
80+
if info.name().to_str() == Ok("type") {
8181
return val == PlaneType::Primary as u32 as u64;
8282
}
8383
}

0 commit comments

Comments
 (0)