mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
cargo fix --edition
This commit is contained in:
parent
e1fcffb336
commit
a15d33a10e
197 changed files with 1414 additions and 1380 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use cg;
|
||||
use crate::cg;
|
||||
use darling::util::Override;
|
||||
use quote::{ToTokens, Tokens};
|
||||
use syn::{self, Data, Path, WhereClause};
|
||||
|
@ -11,10 +11,7 @@ use synstructure::{BindingInfo, Structure, VariantInfo};
|
|||
pub fn derive(mut input: syn::DeriveInput) -> Tokens {
|
||||
let mut where_clause = input.generics.where_clause.take();
|
||||
for param in input.generics.type_params() {
|
||||
cg::add_predicate(
|
||||
&mut where_clause,
|
||||
parse_quote!(#param: style_traits::ToCss),
|
||||
);
|
||||
cg::add_predicate(&mut where_clause, parse_quote!(#param: style_traits::ToCss));
|
||||
}
|
||||
|
||||
let input_attrs = cg::parse_input_attrs::<CssInputAttrs>(&input);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue