Skip to content

Commit

Permalink
Remove unused traits and unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogeon committed Feb 24, 2024
1 parent 8fbbae5 commit 63b5849
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
5 changes: 1 addition & 4 deletions palette/src/hues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
#[cfg(any(feature = "approx", feature = "random"))]
use core::ops::Mul;

use core::{
cmp::PartialEq,
ops::{Add, AddAssign, Neg, Sub, SubAssign},
};
use core::ops::{Add, AddAssign, Neg, Sub, SubAssign};

#[cfg(feature = "approx")]
use approx::{AbsDiffEq, RelativeEq, UlpsEq};
Expand Down
15 changes: 0 additions & 15 deletions palette_derive/src/meta/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,6 @@ impl ::quote::ToTokens for IdentOrIndex {
}
}

pub trait MetaParser: Default {
fn internal(&mut self);
fn parse_attribute(&mut self, attribute_name: Ident, attribute_tts: TokenStream) -> Result<()>;
}

pub trait DataMetaParser: Default {
fn parse_struct_field_attribute(
&mut self,
field_name: IdentOrIndex,
ty: Type,
attribute_name: Ident,
attribute_tts: TokenStream,
) -> Result<()>;
}

pub trait AttributeArgumentParser: Default {
fn argument(&mut self, argument: Meta) -> Result<()>;
}
Expand Down

0 comments on commit 63b5849

Please sign in to comment.