1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

don't use syn::token module

This commit is contained in:
Dominic 2020-05-03 23:25:48 +02:00
parent da30f34d97
commit 5e5e3aaf9d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
5 changed files with 25 additions and 23 deletions

View file

@ -6,18 +6,18 @@ use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use syn::{
parenthesized,
parse_macro_input,
parse::{Parse, ParseStream},
punctuated::Punctuated,
token::Comma,
DeriveInput,
Error,
Ident,
parenthesized,
parse_macro_input
Token
};
use std::{iter, str::FromStr};
struct MethodList(Punctuated<Ident, Comma>);
struct MethodList(Punctuated<Ident, Token![,]>);
impl Parse for MethodList
{
@ -25,7 +25,7 @@ impl Parse for MethodList
{
let content;
let _paren = parenthesized!(content in input);
let list : Punctuated<Ident, Comma> = Punctuated::parse_separated_nonempty(&content)?;
let list = Punctuated::parse_separated_nonempty(&content)?;
Ok(Self(list))
}
}