]> git.lizzy.rs Git - rust.git/commitdiff
remove unnecessary `Default` bound from `Hash{Map,Set}`'s `Extend` impl
authorAndrew Paseltiner <apaseltiner@gmail.com>
Mon, 5 Jan 2015 16:37:44 +0000 (11:37 -0500)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Mon, 5 Jan 2015 16:40:39 +0000 (11:40 -0500)
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs

index a6532707f3e367d74237d5f673e9ae78806bd22e..b8f13e3095780a2e579b2431c484fa17193ca2dd 100644 (file)
@@ -1508,7 +1508,7 @@ fn from_iter<T: Iterator<Item=(K, V)>>(iter: T) -> HashMap<K, V, H> {
 }
 
 #[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);
index b1824db93aad120faec507751c130125ad431919..1b029458a6f73e2bebf9bcf0576956a8e2239a15 100644 (file)
@@ -605,7 +605,7 @@ fn from_iter<I: Iterator<Item=T>>(iter: I) -> HashSet<T, H> {
 }
 
 #[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);