-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add #[debug_middleware]
#1993
Add #[debug_middleware]
#1993
Conversation
the previous wasn't available on macos for some reason
fn name(&self) -> &'static str { | ||
match self { | ||
FunctionKind::Handler => "handler", | ||
FunctionKind::Middleware => "middleware", | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a Display
impl?
`#[debug_{}(state = MyStateType)]`", | ||
kind.name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… previous suggestion would allow this:
`#[debug_{}(state = MyStateType)]`", | |
kind.name() | |
`#[debug_{kind}(state = MyStateType)]`", |
nice! |
When will this be merged? |
When I take the time to address the comments and clean it up. Don't know when that'll be. |
Due to the arcane trait bound errors middlewares are basically useless unless this is merged. |
I'm continuing the work in #2725 |
Superseded by the PR linked above. |
Fixes #1985
TODO