Skip to content

Commit

Permalink
chore: Fix new 1.66.0 clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Sep 24, 2024
1 parent 3bd46f7 commit ff5c9da
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drm-ffi/src/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ pub fn get_connector(
} else {
&tmp_mode as *const _ as _
},
count_modes: if force_probe { 0 } else { 1 },
count_modes: u32::from(!force_probe),
..Default::default()
};

Expand Down Expand Up @@ -427,13 +427,7 @@ pub fn get_connector(
prop_values_ptr: map_ptr!(&prop_values),
count_modes: match &modes {
Some(b) => b.capacity() as _,
None => {
if force_probe {
0
} else {
1
}
}
None => u32::from(!force_probe),
},
count_props: map_len!(&props),
count_encoders: map_len!(&encoders),
Expand Down

0 comments on commit ff5c9da

Please sign in to comment.