-
Notifications
You must be signed in to change notification settings - Fork 9
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
impl std::error::Error for cargo scout Error #58
Comments
Plz, assign this one to me. Thanks! |
Yay! |
I've had a bit of a look at this issue, and here's something pretty cool! As explained in the Error trait description
We also want to have the std error trait in scope, but not callable (it would cause conflicts with our Error enum) eg:
One drawback of it is that it won't implement the cause() function on its own, so we might want to provide it ourselves. So this issue has actually two parts:
Both steps can be split in separate issues, or tackled in this one, depending on how hard it would be, and how long it would take (and if you wanna do it of course :D) Please let me know what you think 🎉 |
Just to add my 2 cents, I think we should implement source instead of cause as the latter has been deprecated. We could also think about using the great thiserror to reduce the boilerplate of the |
Oh that’s an excellent crate ! |
As mentionned in this comment cargo scout Error is expected to implement std::error::Error.
This is something that would probably only require us to add an impl Display to it :)
The text was updated successfully, but these errors were encountered: