We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6359dce commit 830d611Copy full SHA for 830d611
machine/src/platform/raspberrypi/display.rs
@@ -19,7 +19,7 @@ impl Color {
19
pub const fn rgb(r: u8, g: u8, b: u8) -> Color {
20
// @todo use u32::from(g) when it's declared const
21
// (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))
+ Color(((b as u32) << 16) | ((g as u32) << 8) | (r as u32))
23
}
24
25
pub const fn black() -> Color {
0 commit comments