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

Add common traits to basic enums #32

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

agarof
Copy link
Contributor

@agarof agarof commented Apr 26, 2024

This PR adds some common traits (Hash and Copy) from Rust's API guidelines to the crate's basic enum types.

I recently needed to create a HashMap using (String, NfFamily) as keys and couldn't since NfFamily didn't implement Hash. I added Copy as well for good measure since these enums are all 1 byte large.

@jwhb
Copy link
Member

jwhb commented May 16, 2024

Looks good, LGTM.

@agarof thanks for your contribution!

@jwhb jwhb merged commit a503df1 into namib-project:main May 16, 2024
3 checks passed
@jwhb jwhb added this to the v0.5.0 milestone Oct 19, 2024
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.

2 participants