From 75b05c518d03b1bd8118063e6bca7f02a1e64a06 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 4 Mar 2018 23:48:31 +0100 Subject: [PATCH] Derive ToCss for DeclaredValueOwned rather than DeclaredValue --- components/style/properties/properties.mako.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 595a9078141..2462d21a715 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1308,7 +1308,7 @@ impl ShorthandId { /// Servo's representation of a declared value for a given `T`, which is the /// declared value for that property. -#[derive(Clone, Debug, Eq, PartialEq, ToCss)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum DeclaredValue<'a, T: 'a> { /// A known specified value from the stylesheet. Value(&'a T), @@ -1323,7 +1323,7 @@ pub enum DeclaredValue<'a, T: 'a> { /// extra discriminant word) and synthesize dependent DeclaredValues for /// PropertyDeclaration instances as needed. #[cfg_attr(feature = "gecko", derive(MallocSizeOf))] -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq, ToCss)] pub enum DeclaredValueOwned { /// A known specified value from the stylesheet. Value(T), @@ -1756,7 +1756,7 @@ impl ToCss for CustomDeclaration { where W: fmt::Write, { - self.value.borrow().to_css(dest) + self.value.to_css(dest) } }