Skip to content

Commit

Permalink
Fix CI (#259)
Browse files Browse the repository at this point in the history
Appease Clippy, and pin objc2-encode for MSRV.
  • Loading branch information
madsmtm authored Jan 28, 2025
1 parent 00a1a21 commit 11bfe5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/drm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 11bfe5f

Please sign in to comment.