Skip to content

ErrorResponse conflicts with impl IntoResponse #1062

Answered by jplatte
scotow asked this question in Q&A
Discussion options

You must be logged in to vote

I'm surprised this ever worked. I would recommend writing the return types of fallible handler functions as Result<impl IntoResponse, Error> or Result<impl IntoResponse> given a Result type alias like the one in axum::response.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scotow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants