Replies: 3 comments
|
I agree that its a foot gun but I'd be annoyed having to return |
0 replies
|
I took the documentation more of a "use at your own risk" and I use it that way sometimes. I think both of those features are good by themselves but the combination is a little tricky. But I'd still rather keep both. |
0 replies
|
Thanks for your feedback! I'll close this conversation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'd like to discuss the possibility to remove the
IntoResponsefor().Some users are using handlers returning
impl IntoResponse, even if this pattern is discouraged in the documentation.This pattern added to the
impl IntoResponsefor()makes mistakes easy. If someone adds a semicolon after the last statement, we use()instead of the intended response:Change
to
Removing this would break some code. Following patterns are used extensively in the axum codebase:
and would need to to adapted.
All reactions