Skip to content

Commit

Permalink
Format with rustfmt 1.5.2-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 10, 2023
1 parent ee9166e commit 1d910a4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions serde/src/de/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,8 @@ seq_impl!(
HashSet::clear,
HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
HashSet::reserve,
HashSet::insert);
HashSet::insert
);

#[cfg(any(feature = "std", feature = "alloc"))]
seq_impl!(
Expand Down Expand Up @@ -1409,16 +1410,14 @@ macro_rules! map_impl {
}

#[cfg(any(feature = "std", feature = "alloc"))]
map_impl!(
BTreeMap<K: Ord, V>,
map,
BTreeMap::new());
map_impl!(BTreeMap<K: Ord, V>, map, BTreeMap::new());

#[cfg(feature = "std")]
map_impl!(
HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
map,
HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default()));
HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default())
);

////////////////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 1d910a4

Please sign in to comment.