about summary refs log tree commit diff
path: root/src/libstd/hashmap.rs
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-07-26 00:55:05 +0200
committerDaniel Micay <danielmicay@gmail.com>2013-07-27 14:37:55 -0400
commit7ae17e0964b9f869881f4122cd0e1ccc19bee0d4 (patch)
tree68c3611511cf21c0b930d75dd559dfd8cde8c066 /src/libstd/hashmap.rs
parentd7c9bb4b688ff20a3fd1d4ff1a11bb4dcbdc2c47 (diff)
downloadrust-7ae17e0964b9f869881f4122cd0e1ccc19bee0d4.tar.gz
rust-7ae17e0964b9f869881f4122cd0e1ccc19bee0d4.zip
Remove dummy type parameters from iterator adaptors
With the recent fixes to method resolution, we can now remove the
dummy type parameters used as crutches in the iterator module.

For example, the zip adaptor type is just ZipIterator<T, U> now.
Diffstat (limited to 'src/libstd/hashmap.rs')
-rw-r--r--src/libstd/hashmap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/hashmap.rs b/src/libstd/hashmap.rs
index deeda501942..818c6b69b81 100644
--- a/src/libstd/hashmap.rs
+++ b/src/libstd/hashmap.rs
@@ -770,7 +770,7 @@ impl<T:Hash + Eq> HashSet<T> {
 
     /// Visit the values representing the symmetric difference
     pub fn symmetric_difference_iter<'a>(&'a self, other: &'a HashSet<T>)
-        -> ChainIterator<&'a T, SetAlgebraIter<'a, T>, SetAlgebraIter<'a, T>> {
+        -> ChainIterator<SetAlgebraIter<'a, T>, SetAlgebraIter<'a, T>> {
         self.difference_iter(other).chain_(other.difference_iter(self))
     }
 
@@ -783,7 +783,7 @@ impl<T:Hash + Eq> HashSet<T> {
 
     /// Visit the values representing the union
     pub fn union_iter<'a>(&'a self, other: &'a HashSet<T>)
-        -> ChainIterator<&'a T, HashSetIterator<'a, T>, SetAlgebraIter<'a, T>> {
+        -> ChainIterator<HashSetIterator<'a, T>, SetAlgebraIter<'a, T>> {
         self.iter().chain_(other.difference_iter(self))
     }