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

Support for custom hash functions for HashMap #654

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

a14e
Copy link
Contributor

@a14e a14e commented Sep 16, 2023

In this pull request, I added a generic parameter to all HashMap traits to support the custom Hash function. In my case, I wanted to add support for ahash.

@a14e
Copy link
Contributor Author

a14e commented Sep 22, 2023

@sunli829 could you please take a look?

@sunli829
Copy link
Collaborator

Thank you very much, I believe other containers have similar problems, such as HashSet, it would be great if you could help me fix it. 🙂

PS: format the code using rust +nightly fmt

* hash set support
@a14e
Copy link
Contributor Author

a14e commented Sep 23, 2023

@sunli829 done

@sunli829
Copy link
Collaborator

thanks😁

@sunli829 sunli829 merged commit a2e8b98 into poem-web:master Sep 26, 2023
7 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.

2 participants