From 83a23128677c25e1e64b8df8bd294357629d0941 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 2 Mar 2018 21:02:39 +0100 Subject: [PATCH] Derive ToCss for Symbol --- components/style/counter_style/mod.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs index 570ef06ab1b..0d2c4e8e674 100644 --- a/components/style/counter_style/mod.rs +++ b/components/style/counter_style/mod.rs @@ -391,7 +391,7 @@ impl ToCss for System { /// #[cfg_attr(feature = "gecko", derive(MallocSizeOf))] -#[derive(Clone, Debug, Eq, PartialEq, ToComputedValue)] +#[derive(Clone, Debug, Eq, PartialEq, ToComputedValue, ToCss)] pub enum Symbol { /// String(String), @@ -417,18 +417,6 @@ impl Parse for Symbol { } } -impl ToCss for Symbol { - fn to_css(&self, dest: &mut CssWriter) -> fmt::Result - where - W: Write, - { - match *self { - Symbol::String(ref s) => s.to_css(dest), - Symbol::Ident(ref s) => s.to_css(dest), - } - } -} - impl Symbol { /// Returns whether this symbol is allowed in symbols() function. pub fn is_allowed_in_symbols(&self) -> bool {