Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed May 8, 2024
1 parent 9ddf30f commit 28da020
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions data/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,12 @@ pub enum ColorKind {
Unique,
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct Color {
pub kind: ColorKind,
pub hex: Option<String>,
}

impl Default for Color {
fn default() -> Self {
Self { kind: ColorKind::default(), hex: None }
}
}

impl<'de> Deserialize<'de> for Color {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
Expand Down

0 comments on commit 28da020

Please sign in to comment.