Skip to content

Commit

Permalink
fix(clippy): πŸ› Fix new clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
berkus committed Jan 26, 2025
1 parent 92bfc4b commit 3669d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/src/platform/raspberrypi/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Color {
pub const fn rgb(r: u8, g: u8, b: u8) -> Color {
// @todo use u32::from(g) when it's declared const
// (see https://doc.rust-lang.org/src/core/convert/num.rs.html#49-54)
Color((b as u32) << 16 | (g as u32) << 8 | (r as u32))
Color(((b as u32) << 16) | ((g as u32) << 8) | (r as u32))
}

pub const fn black() -> Color {
Expand Down

0 comments on commit 3669d19

Please sign in to comment.