Skip to content

Commit 830d611

Browse files
committed
fix(clippy): 🐛 Fix new clippy warning
1 parent 6359dce commit 830d611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine/src/platform/raspberrypi/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl Color {
1919
pub const fn rgb(r: u8, g: u8, b: u8) -> Color {
2020
// @todo use u32::from(g) when it's declared const
2121
// (see https://doc.rust-lang.org/src/core/convert/num.rs.html#49-54)
22-
Color((b as u32) << 16 | (g as u32) << 8 | (r as u32))
22+
Color(((b as u32) << 16) | ((g as u32) << 8) | (r as u32))
2323
}
2424

2525
pub const fn black() -> Color {

0 commit comments

Comments
 (0)