tune words

This commit is contained in:
Arniu 2020-09-22 13:54:02 +08:00
parent 928b8d8a72
commit 4d016ae16c
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ impl Args {
return Err(syn::Error::new_spanned( return Err(syn::Error::new_spanned(
&nv.lit, &nv.lit,
&format!( &format!(
"HTTP Method defined more than once: `{}`", "HTTP method defined more than once: `{}`",
lit.value() lit.value()
), ),
)); ));

View File

@ -1,4 +1,4 @@
error: HTTP Method defined more than once: `GET` error: HTTP method defined more than once: `GET`
--> $DIR/route-duplicate-method-fail.rs:3:35 --> $DIR/route-duplicate-method-fail.rs:3:35
| |
3 | #[route("/", method="GET", method="GET")] 3 | #[route("/", method="GET", method="GET")]

View File

@ -1,4 +1,4 @@
error: Unexpected HTTP Method: `UNEXPECTED` error: Unexpected HTTP method: `UNEXPECTED`
--> $DIR/route-unexpected-method-fail.rs:3:21 --> $DIR/route-unexpected-method-fail.rs:3:21
| |
3 | #[route("/", method="UNEXPECTED")] 3 | #[route("/", method="UNEXPECTED")]