Skip to content

Commit 61bb6ac

Browse files
committed
remove unnecessary Default bound from Hash{Map,Set}'s Extend impl
1 parent 8e83af6 commit 61bb6ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ impl<K: Eq + Hash<S>, V, S, H: Hasher<S> + Default> FromIterator<(K, V)> for Has
15081508
}
15091509

15101510
#[stable]
1511-
impl<K: Eq + Hash<S>, V, S, H: Hasher<S> + Default> Extend<(K, V)> for HashMap<K, V, H> {
1511+
impl<K: Eq + Hash<S>, V, S, H: Hasher<S>> Extend<(K, V)> for HashMap<K, V, H> {
15121512
fn extend<T: Iterator<Item=(K, V)>>(&mut self, mut iter: T) {
15131513
for (k, v) in iter {
15141514
self.insert(k, v);

src/libstd/collections/hash/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ impl<T: Eq + Hash<S>, S, H: Hasher<S> + Default> FromIterator<T> for HashSet<T,
605605
}
606606

607607
#[stable]
608-
impl<T: Eq + Hash<S>, S, H: Hasher<S> + Default> Extend<T> for HashSet<T, H> {
608+
impl<T: Eq + Hash<S>, S, H: Hasher<S>> Extend<T> for HashSet<T, H> {
609609
fn extend<I: Iterator<Item=T>>(&mut self, mut iter: I) {
610610
for k in iter {
611611
self.insert(k);

0 commit comments

Comments
 (0)