mirror of
https://github.com/openharmony/third_party_rust_indexmap.git
synced 2026-07-01 20:54:05 -04:00
cargo fmt
(cherry picked from commit cda1a0b5c947330ece313fe3ab2cc1fe906f1ed4)
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user