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

Make IndexedMap constructor function const #22

Merged
merged 4 commits into from Dec 6, 2022
Merged

Make IndexedMap constructor function const #22

merged 4 commits into from Dec 6, 2022

Conversation

larry0x
Copy link
Contributor

@larry0x larry0x commented Dec 2, 2022

Makes the following functions constant:

  • IndexedMap::new
  • MultiIndex::new
  • UniqueIndex::new

Copy link
Contributor

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

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

LGTM
👍 for tests improvements

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Looks like good cleanup.

It doesn't break anything, but allows new use cases.
I guess the Rust compiler just got smarter since the code was written.

@webmaster128 webmaster128 reopened this Dec 6, 2022
@webmaster128
Copy link
Member

"Build forked pull requests" was off in the circleci config for this project. I now turned it on and re-opened to trigger a build.

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.

4 participants