Skip to content

Commit bf7c2e6

Browse files
committed
Fix new clippy::precedence warnings.
1 parent e4a9099 commit bf7c2e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/runners/cpu/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ fn color_u32_from_vec4(v: Vec4) -> u32 {
9292
let convert = |f: f32| -> u32 { (f.clamp(0.0, 1.0) * 255.0).round() as u32 };
9393

9494
convert(srgb_oetf(v.z))
95-
| convert(srgb_oetf(v.y)) << 8
96-
| convert(srgb_oetf(v.x)) << 16
97-
| convert(v.w) << 24
95+
| (convert(srgb_oetf(v.y)) << 8)
96+
| (convert(srgb_oetf(v.x)) << 16)
97+
| (convert(v.w) << 24)
9898
}
9999

100100
fn main() {

0 commit comments

Comments
 (0)