Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@krokosik
Copy link

@krokosik krokosik commented Mar 7, 2025

Thank you for the great library! I would like to improve its error handling by adding the Error trait bound to your error type, so that it is compatible with crates such as anyhow. For example when I use the ? operator in a function that returns an anyhow::Result I have to append map_err to each method call.

@krokosik krokosik marked this pull request as draft March 7, 2025 13:18
@krokosik
Copy link
Author

krokosik commented Mar 7, 2025

Okay, looks like my amateur Rust knowledge showed off ;//

It seems that the core::error::Error trait exists since 1.81.0 and I'm not sure how to work around that to get anyhow compat

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

Successfully merging this pull request may close these issues.

1 participant