-
Notifications
You must be signed in to change notification settings - Fork 56
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
Replace failure crate with anyhow+thiserror #286
Replace failure crate with anyhow+thiserror #286
Conversation
9c6dc94
to
349868e
Compare
CI flake, Images failed to build. /retest |
@@ -1,4 +1,4 @@ | |||
use failure::Fallible; | |||
use anyhow::Result as Fallible; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheater 😉
Failure was [deprecated][0] and suggests anyhow+thiserror to replace itself in dependent projects. [0]: rust-lang-deprecated/failure#347
349868e
to
b138286
Compare
I was mislead by this message:
when in fact it was an unresolved import in the e2e tests which I missed when testing locally. |
@@ -154,25 +151,27 @@ pub struct Empty; | |||
|
|||
/// Errors that can be returned by the methods in this library | |||
pub mod errors { | |||
use commons::prelude_errors::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not seen this before. Can you please explain purpose of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also did not find any pointers in internet e.g. https://doc.rust-lang.org/std/prelude/index.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prelude
is a naming convention for modules which export commonly used items. AFAIU there's nothing right or wrong about it, and I decided to include errors
in the name as this prelude is about error related items only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, LalatenduMohanty, steveeJ The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Failure was deprecated and suggests anyhow+thiserror to replace
itself in dependent projects.