From 21ecf4769352f7326240571bdccf27aa18597207 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 11 Jul 2017 15:00:38 +0200 Subject: [PATCH] Derive ToCss for counter_style::Negative --- components/style/counter_style/mod.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs index a2b681dc262..5ca39da05ca 100644 --- a/components/style/counter_style/mod.rs +++ b/components/style/counter_style/mod.rs @@ -380,7 +380,7 @@ impl Symbol { } /// https://drafts.csswg.org/css-counter-styles/#counter-style-negative -#[derive(Debug, Clone)] +#[derive(Debug, Clone, ToCss)] pub struct Negative(pub Symbol, pub Option); impl Parse for Negative { @@ -392,17 +392,6 @@ impl Parse for Negative { } } -impl ToCss for Negative { - fn to_css(&self, dest: &mut W) -> fmt::Result where W: fmt::Write { - self.0.to_css(dest)?; - if let Some(ref symbol) = self.1 { - dest.write_char(' ')?; - symbol.to_css(dest)? - } - Ok(()) - } -} - /// https://drafts.csswg.org/css-counter-styles/#counter-style-range /// /// Empty Vec represents 'auto'