Skip to content
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

Properly replace eyre_to_axum_err with an Into trait impl #253

Open
zleyyij opened this issue Oct 27, 2024 · 0 comments
Open

Properly replace eyre_to_axum_err with an Into trait impl #253

zleyyij opened this issue Oct 27, 2024 · 0 comments

Comments

@zleyyij
Copy link
Contributor

zleyyij commented Oct 27, 2024

https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
This way you don't need .map_err, and can just directly propagate from handlers with ?

@zleyyij zleyyij mentioned this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant