1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

Merge branch 'master' of github.com:actix/actix-web

This commit is contained in:
Nikolay Kim 2019-03-26 09:22:51 -07:00
commit 999fa65efa

View File

@ -48,7 +48,7 @@ pub fn get(args: TokenStream, input: TokenStream) -> TokenStream {
pub fn post(args: TokenStream, input: TokenStream) -> TokenStream { pub fn post(args: TokenStream, input: TokenStream) -> TokenStream {
let args = parse_macro_input!(args as syn::AttributeArgs); let args = parse_macro_input!(args as syn::AttributeArgs);
if args.is_empty() { if args.is_empty() {
panic!("invalid server definition, expected: #[get(\"some path\")]"); panic!("invalid server definition, expected: #[post(\"some path\")]");
} }
// path // path
@ -85,7 +85,7 @@ pub fn post(args: TokenStream, input: TokenStream) -> TokenStream {
pub fn put(args: TokenStream, input: TokenStream) -> TokenStream { pub fn put(args: TokenStream, input: TokenStream) -> TokenStream {
let args = parse_macro_input!(args as syn::AttributeArgs); let args = parse_macro_input!(args as syn::AttributeArgs);
if args.is_empty() { if args.is_empty() {
panic!("invalid server definition, expected: #[get(\"some path\")]"); panic!("invalid server definition, expected: #[put(\"some path\")]");
} }
// path // path