Skip to content

Conversation

Wasabi375
Copy link
Contributor

Page<S> only implements Hash if S also implements Hash. Not sure why this is a requirement since size is a PhantomData.
This PR adds Hash implementations for Size4KiB, Size2MiB and Size1GiB.

I'm not 100% sure whether this is a breaking change or not. I can never remember if adding a trait is one or not. I am happy to rebase this onto next. Should be a trivial change anyways.

Copy link
Member

@Freax13 Freax13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

I'm not 100% sure whether this is a breaking change or not. I can never remember if adding a trait is one or not. I am happy to rebase this onto next. Should be a trivial change anyways.

We run semver checks in CI and they seem to pass :)

@Freax13 Freax13 merged commit 2d3bd56 into rust-osdev:master Jul 4, 2024
@Wasabi375 Wasabi375 deleted the zst_hash branch July 4, 2024 19:58
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

2 participants