mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-19 05:00:34 +01:00
911c4a788e
* 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 <jplatte@users.noreply.github.com> Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
13 lines
467 B
Text
13 lines
467 B
Text
error: cannot use both `rejection_derive` and `via`
|
|
--> tests/from_request/fail/rejection_derive_and_via.rs:5:42
|
|
|
|
|
5 | #[from_request(rejection_derive(!Error), via(Extension))]
|
|
| ^^^
|
|
|
|
warning: unused import: `axum::extract::Extension`
|
|
--> tests/from_request/fail/rejection_derive_and_via.rs:2:5
|
|
|
|
|
2 | use axum::extract::Extension;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_imports)]` on by default
|