Skip to content

Commit

Permalink
Fox more clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Dec 14, 2024
1 parent 97db8f0 commit 7885b8a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/dsi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,10 @@ impl DsiHost {
});

// Color coding for the host
let lpe = match dsi_config.color_coding_host {
ColorCoding::EighteenBitsConfig1 => true,
ColorCoding::EighteenBitsConfig2 => true,
_ => false,
};
let lpe = matches!(
dsi_config.color_coding_host,
ColorCoding::EighteenBitsConfig1 | ColorCoding::EighteenBitsConfig2
);
dsi.lcolcr.modify(|_, w| unsafe {
w.lpe()
.bit(lpe) // loosely packed: 18bits
Expand Down

0 comments on commit 7885b8a

Please sign in to comment.