Skip to content

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

mapleFU added 5 commits May 19, 2020 14:54
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

[`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.

4 participants