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:
parent
5e5e3aaf9d
commit
992d9be195
6 changed files with 10 additions and 14 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue