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 implementation for std::hash::Hash for HashBytes #295

Merged
merged 4 commits into from
Jan 14, 2023

Conversation

soerenbf
Copy link
Contributor

Purpose

Added Hash trait to hashbytes type to be able to use it in data structures requiring the Hash trait (such as HashMap)

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@soerenbf soerenbf self-assigned this Jan 13, 2023
@soerenbf soerenbf force-pushed the hash-trait-hashbytes branch 2 times, most recently from 5e5fbb4 to d021b26 Compare January 13, 2023 14:20
@soerenbf soerenbf force-pushed the hash-trait-hashbytes branch from d021b26 to 0863d14 Compare January 13, 2023 16:13
@soerenbf soerenbf requested a review from abizjak January 14, 2023 12:34
rust-src/concordium_base/src/hashes.rs Outdated Show resolved Hide resolved
@soerenbf soerenbf merged commit 3863d95 into main Jan 14, 2023
@soerenbf soerenbf deleted the hash-trait-hashbytes branch January 14, 2023 16:43
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.

3 participants