diff --git a/components/style/values/generics/image.rs b/components/style/values/generics/image.rs index ca041d5ed9d..e5e725ebe05 100644 --- a/components/style/values/generics/image.rs +++ b/components/style/values/generics/image.rs @@ -120,7 +120,7 @@ pub enum GradientItem { /// A color stop. /// -#[derive(Clone, Copy, MallocSizeOf, PartialEq, ToComputedValue, ToCss)] +#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)] pub struct ColorStop { /// The color of this stop. pub color: Color, @@ -310,15 +310,3 @@ where } } } - -impl fmt::Debug for ColorStop - where C: fmt::Debug, L: fmt::Debug, -{ - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:?}", self.color)?; - if let Some(ref pos) = self.position { - write!(f, " {:?}", pos)?; - } - Ok(()) - } -}