mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Bump all in-tree components to syn 1
This commit is contained in:
parent
2d823d7721
commit
99ef7813f2
15 changed files with 94 additions and 86 deletions
|
@ -14,7 +14,7 @@ pub fn derive(mut input: DeriveInput) -> TokenStream {
|
|||
let no_bound = animation_input_attrs.no_bound.unwrap_or_default();
|
||||
let mut where_clause = input.generics.where_clause.take();
|
||||
for param in input.generics.type_params() {
|
||||
if !no_bound.contains(¶m.ident) {
|
||||
if !no_bound.iter().any(|name| name.is_ident(¶m.ident)) {
|
||||
cg::add_predicate(
|
||||
&mut where_clause,
|
||||
parse_quote!(#param: crate::values::distance::ComputeSquaredDistance),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue