Support changing state type in #[debug_handler] (#1271)

* support setting body type for #[debug_handler]

* Use lookahead1 to give better errors and detect duplicate arguments

* fix docs link
This commit is contained in:
David Pedersen
2022-08-18 11:41:14 +02:00
committed by GitHub
parent e7f1c88cd4
commit 568394a28e
9 changed files with 249 additions and 10 deletions
@@ -1,4 +1,4 @@
error: unknown argument
error: expected `body` or `state`
--> tests/debug_handler/fail/invalid_attrs.rs:3:17
|
3 | #[debug_handler(foo)]