aboutsummaryrefslogtreecommitdiffstats
path: root/crates/colors
diff options
context:
space:
mode:
Diffstat (limited to 'crates/colors')
-rw-r--r--crates/colors/src/custom.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/colors/src/custom.rs b/crates/colors/src/custom.rs
index fd6b7b3..47283ec 100644
--- a/crates/colors/src/custom.rs
+++ b/crates/colors/src/custom.rs
@@ -13,6 +13,10 @@
const U8_TO_STR: [[u8; 3]; 256] = generate_lookup();
+#[expect(
+ clippy::cast_possible_truncation,
+ reason = "We deal only with < 256 numbers, they fit."
+)]
const fn generate_lookup() -> [[u8; 3]; 256] {
let mut table = [[0, 0, 0]; 256];
@@ -32,6 +36,7 @@ const fn generate_lookup() -> [[u8; 3]; 256] {
#[derive(Clone, Copy)]
pub(crate) enum Plane {
Fg,
+ #[expect(unused)]
Bg,
}