Update syn and related dependencies

This commit is contained in:
Bastien Orivel 2018-11-30 12:28:20 +01:00
parent e4c80d0a88
commit e94de4e1bd
22 changed files with 215 additions and 226 deletions

View file

@ -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;