From 7289c68efae111768d40e357102bc34139bb59e2 Mon Sep 17 00:00:00 2001 From: backwardspy Date: Sun, 8 Sep 2024 19:14:26 +0000 Subject: [PATCH] chore: fix clippy complaints --- src/models.rs | 2 ++ 1 file changed, 2 insertions(+) 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) }