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

Allow specifying custom error types for TryFrom implementations #123

Merged
merged 2 commits into from
Aug 13, 2023

Conversation

illicitonion
Copy link
Owner

@illicitonion illicitonion commented Jul 30, 2023

The default behaviour remains the same, but error types can be customised.

This is a breaking change, as it adds a new associated type to TryFromPrimitive - while we don't expect this to break anyone's code, we'll bump to 0.7.0 to be safe.

lib.rs is getting huge and unwieldy.

This is a pure code move.
@illicitonion illicitonion changed the title Custom error types Allow specifying custom error types for TryFrom implementations Aug 13, 2023
@illicitonion illicitonion marked this pull request as ready for review August 13, 2023 17:46
@illicitonion illicitonion merged commit 2899217 into main Aug 13, 2023
7 checks passed
@illicitonion illicitonion deleted the custom-error-types branch August 13, 2023 17:58
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

2 participants