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

Ensure that Page actually implements Hash #490

Merged
merged 1 commit into from
Jul 4, 2024

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
13 checks passed
@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.

2 participants