-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
change failure
to thiserror
#354
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: mapleFU <1506118561@qq.com>
Signed-off-by: mapleFU <1506118561@qq.com>
Signed-off-by: mapleFU <1506118561@qq.com>
Signed-off-by: mapleFU <1506118561@qq.com>
Signed-off-by: mapleFU <1506118561@qq.com>
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. Thanks!
We might need to add this related issue in the description: #343 |
easily handle errors of all kinds. | ||
|
||
[`failure`]: https://docs.rs/failure/0.1.5/failure/ | ||
[`thiserror`]: https://docs.rs/thiserror/1.0.18/thiserror/ | ||
|
||
The [failure guide][fg] describes [several] error handling patterns. |
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.
This failure guide might be removed or replaced with other materials based on thiserror
crate.
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.
Well, I asked brain anderson about this, but he didn't reply yet. This part shows patterns for using error handling, I think replace it maybe not good.
Would you mind give some suggestion here?
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.
Maybe I can add strikethrough on contents about thiserror
@ziyi-yan
What problem does this PR solve?
failure
crate is deprecated now, I changed it tothiserror
.What is changed and how it works?
Check List
Tests
Side effects
None.
Related changes
None