mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 23:07:01 +00:00
remove Resource::name() method and update resource documentation
This commit is contained in:
parent
6680887b84
commit
b9002bd70d
2 changed files with 34 additions and 20 deletions
|
@ -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)*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue