mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
* Handle structs without fields * Support opt-out of derived rejection traits * Handle duplicate opt outs * Improve error if opting out of `Display` or `Debug` but not `Error` * document `rejection_derive` * Handle using both `via` and `rejection_derive` * don't derive debug for `RejectionDeriveOptOuts` * Update axum-macros/src/from_request.rs Co-authored-by: Jonas Platte <[email protected]> Co-authored-by: Jonas Platte <[email protected]>
14 lines
470 B
Plaintext
14 lines
470 B
Plaintext
error: cannot use both `via` and `rejection_derive`
|
|
--> tests/from_request/fail/via_and_rejection_derive.rs:5:32
|
|
|
|
|
5 | #[from_request(via(Extension), rejection_derive(!Error))]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
warning: unused import: `axum::extract::Extension`
|
|
--> tests/from_request/fail/via_and_rejection_derive.rs:2:5
|
|
|
|
|
2 | use axum::extract::Extension;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_imports)]` on by default
|