mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
Fix copy/paste mistake in error message (#733)
This commit is contained in:
parent
83d4447349
commit
254b61e800
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user