From dffba35d83c6aca341cbf9c1f893657f8309e74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 6 Mar 2017 08:04:22 +0100 Subject: [PATCH] style: Remove unneeded indirection in LonghandsToSerialize. --- components/style/properties/helpers.mako.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 861bcc2eaa6..b85f9de75db 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -499,13 +499,8 @@ /// correspond to a shorthand. pub struct LonghandsToSerialize<'a> { % for sub_property in shorthand.sub_properties: - % if sub_property.boxed: - pub ${sub_property.ident}: - &'a Box, - % else: - pub ${sub_property.ident}: - &'a longhands::${sub_property.ident}::SpecifiedValue, - % endif + pub ${sub_property.ident}: + &'a longhands::${sub_property.ident}::SpecifiedValue, % endfor }