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 449d044 commit 9bdcd24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion palette/src/cast/array.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::mem::{transmute_copy, ManuallyDrop};

#[cfg(feature = "alloc")]
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::{boxed::Box, vec::Vec};

pub use palette_derive::ArrayCast;
Expand Down
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 9bdcd24

Please sign in to comment.