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

use less non-public syn api

This commit is contained in:
Dominic 2020-05-03 23:43:42 +02:00
parent 5e5e3aaf9d
commit 992d9be195
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
6 changed files with 10 additions and 14 deletions

View file

@ -7,7 +7,6 @@ use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use syn::{
parenthesized,
parse_macro_input,
parse::{Parse, ParseStream},
punctuated::Punctuated,
DeriveInput,
@ -33,7 +32,7 @@ impl Parse for MethodList
fn expand(tokens : TokenStream) -> Result<TokenStream2, Error>
{
let krate = super::krate();
let input = parse_macro_input::parse::<DeriveInput>(tokens)?;
let input : DeriveInput = syn::parse(tokens)?;
let ident = input.ident;
let name = ident.to_string();