style: Remove unneeded indirection in LonghandsToSerialize.

This commit is contained in:
Emilio Cobos Álvarez 2017-03-06 08:04:22 +01:00
parent 5ccf79e055
commit dffba35d83
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -499,13 +499,8 @@
/// correspond to a shorthand. /// correspond to a shorthand.
pub struct LonghandsToSerialize<'a> { pub struct LonghandsToSerialize<'a> {
% for sub_property in shorthand.sub_properties: % for sub_property in shorthand.sub_properties:
% if sub_property.boxed: pub ${sub_property.ident}:
pub ${sub_property.ident}: &'a longhands::${sub_property.ident}::SpecifiedValue,
&'a Box<longhands::${sub_property.ident}::SpecifiedValue>,
% else:
pub ${sub_property.ident}:
&'a longhands::${sub_property.ident}::SpecifiedValue,
% endif
% endfor % endfor
} }