1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 14:57:01 +00:00

remove Resource::name() method and update resource documentation

This commit is contained in:
Dominic 2020-05-09 18:01:47 +02:00
parent 6680887b84
commit b9002bd70d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 34 additions and 20 deletions

View file

@ -48,11 +48,6 @@ pub fn expand_resource(input : DeriveInput) -> Result<TokenStream>
Ok(quote! {
impl #krate::Resource for #ident
{
fn name() -> String
{
stringify!(#ident).to_string()
}
fn setup<D : #krate::DrawResourceRoutes>(mut route : D)
{
#(#methods)*