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

rename update to change, delete to remove, and remove rest_ prefix from macros

This commit is contained in:
Dominic 2020-05-04 20:45:46 +02:00
parent 3de130e104
commit cc86d3396c
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
8 changed files with 85 additions and 88 deletions

View file

@ -32,7 +32,7 @@ pub fn expand_resource(input : DeriveInput) -> Result<TokenStream>
let name = ident.to_string();
let methods = input.attrs.into_iter().filter(|attr|
attr.path.segments.iter().last().map(|segment| segment.ident.to_string()) == Some("rest_resource".to_string()) // TODO wtf
attr.path.segments.iter().last().map(|segment| segment.ident.to_string()) == Some("resource".to_string()) // TODO wtf
).map(|attr| {
syn::parse2(attr.tokens).map(|m : MethodList| m.0.into_iter())
}).flat_map(|list| match list {