mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -4,7 +4,7 @@
|
|||
|
||||
use crate::cg;
|
||||
use crate::to_css::CssVariantAttrs;
|
||||
use quote::Tokens;
|
||||
use proc_macro2::TokenStream;
|
||||
use syn::{DeriveInput, Path};
|
||||
use synstructure;
|
||||
|
||||
|
@ -15,7 +15,7 @@ pub struct ParseVariantAttrs {
|
|||
pub condition: Option<Path>,
|
||||
}
|
||||
|
||||
pub fn derive(input: DeriveInput) -> Tokens {
|
||||
pub fn derive(input: DeriveInput) -> TokenStream {
|
||||
let name = &input.ident;
|
||||
let s = synstructure::Structure::new(&input);
|
||||
|
||||
|
@ -36,7 +36,7 @@ pub fn derive(input: DeriveInput) -> Tokens {
|
|||
let identifier = cg::to_css_identifier(
|
||||
&css_variant_attrs
|
||||
.keyword
|
||||
.unwrap_or(variant.ast().ident.as_ref().into()),
|
||||
.unwrap_or(variant.ast().ident.to_string()),
|
||||
);
|
||||
let ident = &variant.ast().ident;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue