-
Since the merge of this PR, it has become more difficult to use the Here is an example of an over simplified handler: async fn handler() -> impl IntoResponse {
Err("error")?;
Ok("success")
} and here is the associated error:
In this example, the return type can be specified as Am I missing something, or is not possible to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm surprised this ever worked. I would recommend writing the return types of fallible handler functions as |
Beta Was this translation helpful? Give feedback.
I'm surprised this ever worked. I would recommend writing the return types of fallible handler functions as
Result<impl IntoResponse, Error>
orResult<impl IntoResponse>
given aResult
type alias like the one inaxum::response
.