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

Implement Hash and [Partial]Eq for binary types #400

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

JayKickliter
Copy link
Contributor

I have a concrete use-case for this PR: using an OwnedBinary as the key in caches/maps. I'm currently forced to wrap the binary in a clumsy wrapper struct.

For completeness sake, this PR implements Hash, PartialEq, and Eq for Binary in addition to implementing PartialEq between Binary ⟷ OwnedBinary.

@evnu evnu requested a review from a team November 3, 2021 09:06
@JayKickliter
Copy link
Contributor Author

requested a review from yesterday

That's weird. From who? A GitHub bug?

@evnu
Copy link
Member

evnu commented Nov 4, 2021

That's weird. From who? A GitHub bug?

image

⬆️ That's what it should look like :)

@evnu
Copy link
Member

evnu commented Nov 10, 2021

LGTM, I wonder if we should have a unit test for this?

@hansihe
Copy link
Member

hansihe commented Nov 24, 2021

I think this is good as-is, we don't necessarily need a unit test for something like this.

@hansihe hansihe merged commit eb0aafa into rusterlium:master Nov 24, 2021
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

3 participants