mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
Merge branch 'master' of github.com:actix/actix-web
This commit is contained in:
commit
999fa65efa
@ -48,7 +48,7 @@ pub fn get(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
pub fn post(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
let args = parse_macro_input!(args as syn::AttributeArgs);
|
||||
if args.is_empty() {
|
||||
panic!("invalid server definition, expected: #[get(\"some path\")]");
|
||||
panic!("invalid server definition, expected: #[post(\"some path\")]");
|
||||
}
|
||||
|
||||
// path
|
||||
@ -85,7 +85,7 @@ pub fn post(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
pub fn put(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
let args = parse_macro_input!(args as syn::AttributeArgs);
|
||||
if args.is_empty() {
|
||||
panic!("invalid server definition, expected: #[get(\"some path\")]");
|
||||
panic!("invalid server definition, expected: #[put(\"some path\")]");
|
||||
}
|
||||
|
||||
// path
|
||||
|
Loading…
Reference in New Issue
Block a user