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:
parent
801b6076a0
commit
ce6e93a790
3 changed files with 24 additions and 19 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue