Skip to content

Add HeaderMap collect from array#578

Closed
light4 wants to merge 1 commit into
hyperium:masterfrom
light4:headermap_from_array
Closed

Add HeaderMap collect from array#578
light4 wants to merge 1 commit into
hyperium:masterfrom
light4:headermap_from_array

Conversation

@light4

@light4 light4 commented Nov 27, 2022

Copy link
Copy Markdown

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

@tu6ge

tu6ge commented Dec 7, 2022

Copy link
Copy Markdown

Such a coincidence, I am creating PR #581 .

@seanmonstar

Copy link
Copy Markdown
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

light4 commented Dec 7, 2022

Copy link
Copy Markdown
Author

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