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

Adds FromPrimitive for ZVT error codes. #14

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

SirVer
Copy link
Contributor

@SirVer SirVer commented Dec 15, 2023

This makes handling them in code easier - you once check if the enum can be created from the integer, then you have all the guarantees of a Rust enum.

This makes handling them in code easier - you once check if the enum can
be created from the integer, then you have all the guarantees of a Rust
enum.
@SirVer SirVer merged commit ca8c870 into main Dec 15, 2023
8 checks passed
@dorezyuk dorezyuk deleted the hrapp/errors_from_primitive branch February 1, 2024 10:55
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.

1 participant