mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
Support #[derive(FromRequest)] on enums (#1009)
* Support `#[from_request(via(...))]` on enums * Check `#[from_request]` on variants * check for non enum/struct and clean up * changelog * changelog * remove needless feature * changelog ref
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
error: cannot use `rejection_derive` on enums
|
||||
--> tests/from_request/fail/enum_rejection_derive.rs:4:16
|
||||
|
|
||||
4 | #[from_request(rejection_derive(!Error))]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
Reference in New Issue
Block a user