Skip to content

Commit 1867367

Browse files
usbalbinrichardeoin
authored andcommitted
Fox more clippy warnings
1 parent 97db8f0 commit 1867367

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/dsi.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,10 @@ impl DsiHost {
408408
});
409409

410410
// Color coding for the host
411-
let lpe = match dsi_config.color_coding_host {
412-
ColorCoding::EighteenBitsConfig1 => true,
413-
ColorCoding::EighteenBitsConfig2 => true,
414-
_ => false,
415-
};
411+
let lpe = matches!(
412+
dsi_config.color_coding_host,
413+
ColorCoding::EighteenBitsConfig1 | ColorCoding::EighteenBitsConfig2
414+
);
416415
dsi.lcolcr.modify(|_, w| unsafe {
417416
w.lpe()
418417
.bit(lpe) // loosely packed: 18bits

0 commit comments

Comments
 (0)