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

Add HeaderMap collect from array #578

Closed
wants to merge 1 commit into from

Conversation

light4
Copy link

@light4 light4 commented Nov 27, 2022

Act like std::collections::HashMap from std from 1.56.0

@tu6ge
Copy link

tu6ge commented Dec 7, 2022

Such a coincidence, I am creating PR #581 .

@seanmonstar
Copy link
Member

Thanks for the PR! However, I don't think having this sugar in the library is what we want. There is the existing FromIterator implementation that helps with this.

@seanmonstar seanmonstar closed this Dec 7, 2022
@light4
Copy link
Author

light4 commented Dec 7, 2022

This PR makes it more consistent with rust std.
Maybe take another look at rust-lang/rust#84111

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.

3 participants