File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments