diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index 5e0eba3b..c4db5b1f 100644 --- a/serde/src/de/impls.rs +++ b/serde/src/de/impls.rs @@ -696,7 +696,6 @@ macro_rules! seq_impl { ( $ty:ident < T $(: $tbound1:ident $(+ $tbound2:ident)*)* $(, $typaram:ident : $bound1:ident $(+ $bound2:ident)*)* >, $access:ident, - $ctor:expr, $clear:expr, $with_capacity:expr, $reserve:expr, @@ -793,7 +792,6 @@ fn nop_reserve(_seq: T, _n: usize) {} seq_impl!( BinaryHeap, seq, - BinaryHeap::new(), BinaryHeap::clear, BinaryHeap::with_capacity(size_hint::cautious(seq.size_hint())), BinaryHeap::reserve, @@ -803,7 +801,6 @@ seq_impl!( seq_impl!( BTreeSet, seq, - BTreeSet::new(), BTreeSet::clear, BTreeSet::new(), nop_reserve, @@ -813,7 +810,6 @@ seq_impl!( seq_impl!( LinkedList, seq, - LinkedList::new(), LinkedList::clear, LinkedList::new(), nop_reserve, @@ -824,7 +820,6 @@ seq_impl!( seq_impl!( HashSet, seq, - HashSet::with_hasher(S::default()), HashSet::clear, HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()), HashSet::reserve, @@ -834,7 +829,6 @@ seq_impl!( seq_impl!( Vec, seq, - Vec::new(), Vec::clear, Vec::with_capacity(size_hint::cautious(seq.size_hint())), Vec::reserve, @@ -845,7 +839,6 @@ seq_impl!( seq_impl!( VecDeque, seq, - VecDeque::new(), VecDeque::clear, VecDeque::with_capacity(size_hint::cautious(seq.size_hint())), VecDeque::reserve, @@ -1113,7 +1106,6 @@ macro_rules! map_impl { ( $ty:ident < K $(: $kbound1:ident $(+ $kbound2:ident)*)*, V $(, $typaram:ident : $bound1:ident $(+ $bound2:ident)*)* >, $access:ident, - $ctor:expr, $with_capacity:expr ) => { impl<'de, K, V $(, $typaram)*> Deserialize<'de> for $ty @@ -1168,14 +1160,12 @@ macro_rules! map_impl { map_impl!( BTreeMap, map, - BTreeMap::new(), BTreeMap::new()); #[cfg(feature = "std")] map_impl!( HashMap, map, - HashMap::with_hasher(S::default()), HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default())); ////////////////////////////////////////////////////////////////////////////////