-
Notifications
You must be signed in to change notification settings - Fork 153
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 IndexMap::from(array)
and IndexSet::from(array)
#205
Conversation
I think the CI failure is because of the MSRV… I’m not sure how to handle that. 😕 |
Yes, that's expected. We should pick this up as soon as we can. Unsure if using autocfg is a good solution here. |
@bluss I think I figured out how to use autocfg for this. 🤞 |
@bluss bumping this now that CI is passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some cleanup on the cfg
s.
Oops, good catch. Fixed! |
This patch adds `IndexMap::from(array)` and `IndexSet::from(array)` to match the API for `HashMap`, `HashSet`, etc. as of rust-lang/rust#84111.
…rray)` rust-lang/rust#74878 and rust-lang/rust#65798 were both stabilized in 1.51.
Oh, we do still need |
Ah okay. Reverted removing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This patch adds
IndexMap::from(array)
andIndexSet::from(array)
to match the API forHashMap
,HashSet
, etc. as of rust-lang/rust#84111.