From d5c202969c30af96cf571a5ea5402e014085fdda Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:44:52 +0100 Subject: [PATCH] Parenthesize color mask thanks to clippy --- src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.rs b/src/color.rs index e53aa0b7..da0b00e6 100644 --- a/src/color.rs +++ b/src/color.rs @@ -124,7 +124,7 @@ impl ColorType for OctColor { const BITS_PER_PIXEL_PER_BUFFER: usize = 4; const BUFFER_COUNT: usize = 1; fn bitmask(&self, _bwrbit: bool, pos: u32) -> (u8, u16) { - let mask = !(0xF0 >> (pos % 2) * 4); + let mask = !(0xF0 >> ((pos % 2) * 4)); let bits = self.get_nibble() as u16; (mask, if pos % 2 == 1 { bits } else { bits << 4 }) }