Skip to content

Conversation

@Qqwy
Copy link
Contributor

@Qqwy Qqwy commented Nov 26, 2024

Instead of impl TryFrom<&'a HashMap<K, V>> for HeaderMap<T> this PR changes this to impl TryFrom<&'a HashMap<K, V, S>> for HeaderMap<T>.
No change in behaviour, it only makes the input type more general so it allows passing hashmaps with other hashing functions as well.

This change is fully backwards-compatible because of the no-orphans rule.

Fixes #726

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Thanks so much!

@seanmonstar seanmonstar merged commit 300f91d into hyperium:master Nov 26, 2024
10 checks passed
@Qqwy
Copy link
Contributor Author

Qqwy commented Nov 29, 2024

@seanmonstar When will a new version that contains this change be published?

@seanmonstar
Copy link
Member

Let's aim for Monday (prefer not to do over a weekend.)

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.

HeaderMap's TryFrom<HashMap> is not generic over the hashing algorithm used

2 participants