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

Less generic type arguments

This commit is contained in:
msrd0 2020-04-06 16:20:08 +00:00
parent e0a1505d13
commit 744f56acf9
7 changed files with 200 additions and 272 deletions

View file

@ -39,8 +39,9 @@ pub fn expand_resource(tokens : TokenStream) -> TokenStream
m.0.into_iter()
}).map(|method| {
let method = Method::from_str(&method.to_string()).expect("unknown method");
let mod_ident = method.mod_ident(ident.to_string());
let ident = method.setup_ident(ident.to_string());
quote!(#ident(&mut route);)
quote!(#mod_ident::#ident(&mut route);)
}).collect();
let output = quote! {