mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
style: Remove unneeded indirection in LonghandsToSerialize.
This commit is contained in:
parent
5ccf79e055
commit
dffba35d83
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue