Skip to content

Commit

Permalink
remove unnecessary Default bound from Hash{Map,Set}'s Extend impl
Browse files Browse the repository at this point in the history
  • Loading branch information
apasel422 committed Jan 5, 2015
1 parent 8e83af6 commit 61bb6ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstd/collections/hash/map.rs
Expand Up @@ -1508,7 +1508,7 @@ impl<K: Eq + Hash<S>, V, S, H: Hasher<S> + Default> FromIterator<(K, V)> for Has
}

#[stable]
impl<K: Eq + Hash<S>, V, S, H: Hasher<S> + Default> Extend<(K, V)> for HashMap<K, V, H> {
impl<K: Eq + Hash<S>, V, S, H: Hasher<S>> Extend<(K, V)> for HashMap<K, V, H> {
fn extend<T: Iterator<Item=(K, V)>>(&mut self, mut iter: T) {
for (k, v) in iter {
self.insert(k, v);
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/collections/hash/set.rs
Expand Up @@ -605,7 +605,7 @@ impl<T: Eq + Hash<S>, S, H: Hasher<S> + Default> FromIterator<T> for HashSet<T,
}

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

0 comments on commit 61bb6ac

Please sign in to comment.