diff options
| author | blake2-ppc <blake2-ppc> | 2013-07-26 00:55:05 +0200 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-07-27 14:37:55 -0400 |
| commit | 7ae17e0964b9f869881f4122cd0e1ccc19bee0d4 (patch) | |
| tree | 68c3611511cf21c0b930d75dd559dfd8cde8c066 /src/libstd/hashmap.rs | |
| parent | d7c9bb4b688ff20a3fd1d4ff1a11bb4dcbdc2c47 (diff) | |
| download | rust-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.rs | 4 |
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)) } |
