mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Format component of style_derive
This commit is contained in:
parent
51283cf77a
commit
25bc998f17
8 changed files with 156 additions and 127 deletions
|
@ -23,9 +23,11 @@ pub fn derive(mut input: DeriveInput) -> Tokens {
|
|||
if attrs.field_bound {
|
||||
let ty = &binding.ast().ty;
|
||||
|
||||
let output_type = cg::map_type_params(ty, ¶ms, &mut |ident| {
|
||||
parse_quote!(<#ident as ::values::computed::ToComputedValue>::ComputedValue)
|
||||
});
|
||||
let output_type = cg::map_type_params(
|
||||
ty,
|
||||
¶ms,
|
||||
&mut |ident| parse_quote!(<#ident as ::values::computed::ToComputedValue>::ComputedValue),
|
||||
);
|
||||
|
||||
cg::add_predicate(
|
||||
&mut where_clause,
|
||||
|
@ -71,7 +73,7 @@ pub fn derive(mut input: DeriveInput) -> Tokens {
|
|||
::std::clone::Clone::clone(computed)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
let computed_value_type = cg::fmap_trait_output(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue