mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04: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.
|
||||
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