File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ jobs:
100
100
run : |
101
101
cargo update -p ahash --precise 0.8.7
102
102
cargo update -p bumpalo --precise 3.14.0
103
+ cargo update -p objc2-encode --precise 4.0.3
103
104
104
105
- name : Build crate
105
106
shell : bash
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ mod imple {
62
62
let planes = planes
63
63
. iter ( )
64
64
. filter ( |& & plane| {
65
- device. get_plane ( plane) . map_or ( false , |plane| {
65
+ device. get_plane ( plane) . is_ok_and ( |plane| {
66
66
let crtcs = handles. filter_crtcs ( plane. possible_crtcs ( ) ) ;
67
67
crtcs. contains ( & crtc. handle ( ) )
68
68
} )
@@ -77,7 +77,7 @@ mod imple {
77
77
let ( ids, vals) = props. as_props_and_values ( ) ;
78
78
for ( & id, & val) in ids. iter ( ) . zip ( vals. iter ( ) ) {
79
79
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" ) {
81
81
return val == PlaneType :: Primary as u32 as u64 ;
82
82
}
83
83
}
You can’t perform that action at this time.
0 commit comments