From e3afe7c8a14c1cffd7de50782a7acf0f95f41673 Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Sun, 3 Mar 2024 10:11:50 +0100 Subject: [PATCH] refactor: clippy::unreadable_literal (#974) --- Cargo.toml | 1 + src/style/color.rs | 2 ++ src/style/palette.rs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 23d6775f..9983d0a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,6 +82,7 @@ needless_pass_by_value = "warn" return_self_not_must_use = "warn" semicolon_if_nothing_returned = "warn" trivially_copy_pass_by_ref = "warn" +unreadable_literal = "warn" use_self = "warn" [features] diff --git a/src/style/color.rs b/src/style/color.rs index 35a687a4..9e012280 100644 --- a/src/style/color.rs +++ b/src/style/color.rs @@ -1,3 +1,5 @@ +#![allow(clippy::unreadable_literal)] + use std::{ fmt::{self, Debug, Display}, str::FromStr, diff --git a/src/style/palette.rs b/src/style/palette.rs index 3e87c03d..ebee1742 100644 --- a/src/style/palette.rs +++ b/src/style/palette.rs @@ -1,3 +1,5 @@ +#![allow(clippy::unreadable_literal)] + //! A module for defining color palettes. pub mod material;