Format with rustfmt 1.5.2-nightly

This commit is contained in:
David Tolnay
2023-05-10 00:40:39 -07:00
parent ee9166ec97
commit 1d910a484c
+5 -6
View File
@@ -994,7 +994,8 @@ seq_impl!(
HashSet::clear, HashSet::clear,
HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()), HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
HashSet::reserve, HashSet::reserve,
HashSet::insert); HashSet::insert
);
#[cfg(any(feature = "std", feature = "alloc"))] #[cfg(any(feature = "std", feature = "alloc"))]
seq_impl!( seq_impl!(
@@ -1409,16 +1410,14 @@ macro_rules! map_impl {
} }
#[cfg(any(feature = "std", feature = "alloc"))] #[cfg(any(feature = "std", feature = "alloc"))]
map_impl!( map_impl!(BTreeMap<K: Ord, V>, map, BTreeMap::new());
BTreeMap<K: Ord, V>,
map,
BTreeMap::new());
#[cfg(feature = "std")] #[cfg(feature = "std")]
map_impl!( map_impl!(
HashMap<K: Eq + Hash, V, S: BuildHasher + Default>, HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
map, 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())
);
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////