mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Add #[debug_middleware] (#2725)
Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
c57c2847b2
commit
df612fdc72
@@ -0,0 +1,7 @@
|
||||
error: Middleware functions can only take one argument of type `axum::middleware::Next`
|
||||
--> tests/debug_middleware/fail/takes_next_twice.rs:3:1
|
||||
|
|
||||
3 | #[debug_middleware]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: this error originates in the attribute macro `debug_middleware` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
Reference in New Issue
Block a user