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 trait for SmallVec #337

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Implement Hash trait for SmallVec #337

merged 1 commit into from
Jan 20, 2024

Conversation

hsanzg
Copy link
Contributor

@hsanzg hsanzg commented Jan 19, 2024

While calling the hash function on a SmallVec currently works via dereferencing into &[T] (see test_hash on tests.rs), this is not enough to allow deriving Hash on e.g. a struct containing a single field of type SmallVec.

I ran into this issue while upgrading one of my crates to the beta.2 release.

While calling the `hash` function on a `SmallVec` currently works via
dereferencing into `&[T]` (see `test_hash` on `tests.rs`), this is not
enough to allow deriving `Hash` on e.g. a struct containing a single
field of type `SmallVec`.
Copy link
Collaborator

@mbrubeck mbrubeck left a comment

Choose a reason for hiding this comment

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

Thanks!

@mbrubeck mbrubeck added this pull request to the merge queue Jan 20, 2024
Merged via the queue into servo:v2 with commit 070a579 Jan 20, 2024
5 checks passed
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