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.
clippy::precedence
1 parent e4a9099 commit bf7c2e6Copy full SHA for bf7c2e6
examples/runners/cpu/src/main.rs
@@ -92,9 +92,9 @@ fn color_u32_from_vec4(v: Vec4) -> u32 {
92
let convert = |f: f32| -> u32 { (f.clamp(0.0, 1.0) * 255.0).round() as u32 };
93
94
convert(srgb_oetf(v.z))
95
- | convert(srgb_oetf(v.y)) << 8
96
- | convert(srgb_oetf(v.x)) << 16
97
- | convert(v.w) << 24
+ | (convert(srgb_oetf(v.y)) << 8)
+ | (convert(srgb_oetf(v.x)) << 16)
+ | (convert(v.w) << 24)
98
}
99
100
fn main() {
0 commit comments