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

change failure to thiserror #354

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

change failure to thiserror #354

wants to merge 5 commits into from

Conversation

mapleFU
Copy link

@mapleFU mapleFU commented May 19, 2020

What problem does this PR solve?

failure crate is deprecated now, I changed it to thiserror.

What is changed and how it works?

Check List

Tests

  • No code

Side effects

None.

Related changes

None

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>
@mapleFU mapleFU changed the title Dev thiserror change failure to thiserror May 19, 2020
@mapleFU mapleFU requested review from brson and sticnarf and removed request for brson May 25, 2020 11:00
Copy link
Collaborator

@sticnarf sticnarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@sticnarf sticnarf requested a review from brson May 25, 2020 11:11
@ziyi-yan
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Author

@mapleFU mapleFU Jun 21, 2020

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?

Copy link
Author

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

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.

None yet

3 participants