chore: Apply clippy lints
This commit is contained in:
parent
03dfc009fd
commit
dcbde3b1f2
12 changed files with 100 additions and 58 deletions
|
|
@ -17,6 +17,7 @@ pub struct Palette {
|
|||
}
|
||||
|
||||
impl Palette {
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
pub const LIGHT: Self = Self {
|
||||
background: Color::from_rgb(
|
||||
0xee as f32 / 255.0,
|
||||
|
|
@ -45,6 +46,7 @@ impl Palette {
|
|||
),
|
||||
};
|
||||
|
||||
#[allow(clippy::cast_precision_loss)]
|
||||
pub const DARK: Self = Self {
|
||||
background: Color::from_rgb(
|
||||
0x1e as f32 / 255.0,
|
||||
|
|
@ -107,6 +109,7 @@ pub struct Pair {
|
|||
}
|
||||
|
||||
impl Pair {
|
||||
#[must_use]
|
||||
pub fn new(color: Color, text: Color) -> Self {
|
||||
Self {
|
||||
color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue