From 63b584906703f90d5be1b747eabf0fc225f1d338 Mon Sep 17 00:00:00 2001 From: Erik Hedvall Date: Sat, 24 Feb 2024 16:04:34 +0100 Subject: [PATCH] Remove unused traits and unnecessary import --- palette/src/hues.rs | 5 +---- palette_derive/src/meta/mod.rs | 15 --------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/palette/src/hues.rs b/palette/src/hues.rs index 371bf9a8f..6505574b6 100644 --- a/palette/src/hues.rs +++ b/palette/src/hues.rs @@ -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}; diff --git a/palette_derive/src/meta/mod.rs b/palette_derive/src/meta/mod.rs index ab01c9b00..9f0fcc11c 100644 --- a/palette_derive/src/meta/mod.rs +++ b/palette_derive/src/meta/mod.rs @@ -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<()>; }