mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #15828 - emilio:cleanup-all-day, r=Wafflespeanut
style: Remove unneeded indirection in LonghandsToSerialize. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15828) <!-- Reviewable:end -->
This commit is contained in:
commit
d4bdd33cd9
1 changed files with 2 additions and 7 deletions
|
@ -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<longhands::${sub_property.ident}::SpecifiedValue>,
|
||||
% else:
|
||||
pub ${sub_property.ident}:
|
||||
&'a longhands::${sub_property.ident}::SpecifiedValue,
|
||||
% endif
|
||||
pub ${sub_property.ident}:
|
||||
&'a longhands::${sub_property.ident}::SpecifiedValue,
|
||||
% endfor
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue