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

Keep fn on method handlers

This commit is contained in:
msrd0 2019-10-27 20:44:23 +00:00
parent 801b6076a0
commit ce6e93a790
3 changed files with 24 additions and 19 deletions

View file

@ -39,7 +39,7 @@ 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 ident = method.setup_ident();
let ident = method.setup_ident(ident.to_string());
quote!(#ident(&mut route);)
}).collect();