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 2b3a019
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 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 @@ -428,11 +428,7 @@ pub fn get_connector(
count_modes: match &modes {
Some(b) => b.capacity() as _,
None => {
if force_probe {
0
} else {
1
}
u32::from(!force_probe)
}
},
count_props: map_len!(&props),
Expand Down

0 comments on commit 2b3a019

Please sign in to comment.