Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 7, 2022
1 parent 0937707 commit cda1a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/serde_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ use core::fmt::{self, Formatter};
use core::hash::{BuildHasher, Hash};
use core::marker::PhantomData;

use crate::IndexMap;
use crate::map::Slice as MapSlice;
use crate::set::Slice as SetSlice;
use crate::IndexMap;

/// Serializes a `map::Slice` as an ordered sequence.
///
Expand Down

0 comments on commit cda1a0b

Please sign in to comment.