diff --git a/src/models.rs b/src/models.rs index 7d33621..e4df945 100644 --- a/src/models.rs +++ b/src/models.rs @@ -108,11 +108,13 @@ fn format_hex(r: u8, g: u8, b: u8, a: u8, hex_format: &str) -> tera::Result) -> (u32, u32, i32) { let opacity = opacity.unwrap_or(0xFF); let uint24 = u32::from_be_bytes([0x00, rgb.r, rgb.g, rgb.b]); let uint32 = u32::from_be_bytes([opacity, rgb.r, rgb.g, rgb.b]); + #[allow(clippy::cast_possible_wrap)] (uint24, uint32, uint32 as i32) }