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

Release 1.9.0 with backports from master #231

Merged
merged 19 commits into from
Jun 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo fmt
(cherry picked from commit cda1a0b)
  • Loading branch information
cuviper committed Jun 16, 2022
commit 75de9993cd32dfb95b2805f7dc93a43e0d1157f4
3 changes: 2 additions & 1 deletion src/map/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ impl<K, V> IndexMapCore<K, V> {

/// Shrink the capacity of the map with a lower bound
pub(crate) fn shrink_to(&mut self, min_capacity: usize) {
self.indices.shrink_to(min_capacity, get_hash(&self.entries));
self.indices
.shrink_to(min_capacity, get_hash(&self.entries));
self.entries.shrink_to(min_capacity);
}

Expand Down