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

NOISSUE - Derive Eq and Hash traits for DependencyKind #148

Merged

Conversation

jmcconnell26
Copy link
Contributor

We ran into this in cargo-geiger when migrating from cargo::core to cargo_metadata, where we used the DependencyKind enum as keys in a HashMap.
We have implemented a temporary work around, using a privately declared enum, but it would be great to be able to use this enum.
Thanks,
Josh

@oli-obk
Copy link
Owner

oli-obk commented Nov 30, 2020

Thanks, seems totally fine to me to derive this since there's a concrete use case.
This will take a bit to hit crates.io since I'm planning another major bump soonish

@jmcconnell26 jmcconnell26 deleted the NOISSUE-DeriveEqAndHashForDependencyKind branch November 30, 2020 19:46
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