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

Change OccupiedEntry::insert to use &mut self #69

Merged
merged 1 commit into from
Mar 5, 2018
Merged

Conversation

bluss
Copy link
Member

@bluss bluss commented Mar 4, 2018

This fixes an inconsistency compared with HashMap; this way we use the
same signature for our OccupiedEntry::insert.

Fixes #68

Thanks @dtolnay

This fixes an inconsistency compared with HashMap; this way we use the
same signature for our OccupiedEntry::insert.
@bluss
Copy link
Member Author

bluss commented Mar 5, 2018

With this, we are go for 1.0 right?

@bluss bluss merged commit 0490e1d into master Mar 5, 2018
@bluss bluss deleted the map-entry-insert branch March 5, 2018 19:09
@cuviper
Copy link
Member

cuviper commented Mar 5, 2018

I think so! I did another sweep, and didn't notice anything else different from HashMap and HashSet. Just missing shrink_to_fit as #19 already notes, and I didn't fully check that all trait implementations match, but that can be extended later.

@cuviper cuviper mentioned this pull request Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signature of OccupiedEntry::insert
2 participants