mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
Update syn and related dependencies
This commit is contained in:
parent
e4c80d0a88
commit
e94de4e1bd
22 changed files with 215 additions and 226 deletions
|
@ -3,11 +3,11 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::cg;
|
||||
use quote;
|
||||
use syn::DeriveInput;
|
||||
use proc_macro2::{Span, TokenStream};
|
||||
use syn::{DeriveInput, Ident};
|
||||
use synstructure::BindStyle;
|
||||
|
||||
pub fn derive(mut input: DeriveInput) -> quote::Tokens {
|
||||
pub fn derive(mut input: DeriveInput) -> TokenStream {
|
||||
let mut where_clause = input.generics.where_clause.take();
|
||||
for param in input.generics.type_params() {
|
||||
cg::add_predicate(
|
||||
|
@ -33,7 +33,7 @@ pub fn derive(mut input: DeriveInput) -> quote::Tokens {
|
|||
let animated_value_type = cg::fmap_trait_output(
|
||||
&input,
|
||||
&parse_quote!(crate::values::animated::ToAnimatedValue),
|
||||
"AnimatedValue".into(),
|
||||
Ident::new("AnimatedValue", Span::call_site()),
|
||||
);
|
||||
|
||||
quote! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue