-
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
Debug middleware #2725
Debug middleware #2725
Conversation
Issue with this PR:
Edit: fixed by 8257e1f, the same way it's done in |
axum-macros/src/lib.rs
Outdated
@@ -643,12 +643,14 @@ pub fn debug_handler(_attr: TokenStream, input: TokenStream) -> TokenStream { | |||
/// | |||
/// #[tokio::main] | |||
/// async fn main() { | |||
/// # async { |
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.
Instead of having the main fn do nothing, you can start the code block with ```no_run
: https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#attributes
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.
👍 d4c90cb
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.
Thanks for your help finishing this!
Same as #1993, rebased on
main