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

[feature] use 'thiserror' for the existing errors #797

Merged
merged 1 commit into from
Jul 13, 2021
Merged

Conversation

woshilapin
Copy link
Contributor

Using thiserror (already in our dependencies) to improve the definition of 2 existing errors (RgbError and TimeError). Note that they both were implementing description() which is a deprecated function of the trait std::error::Error. The modification is not strictly equivalent to what was existing before (because there is now no difference between the Display implementation and the associated error message). But I believe this is fine since description() should be implemented into Display.

@woshilapin woshilapin requested a review from ArnaudOggy July 13, 2021 08:52
@woshilapin woshilapin merged commit 9492650 into master Jul 13, 2021
@woshilapin woshilapin deleted the thiserror branch July 13, 2021 12:42
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.

3 participants