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/libextra/dlist.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/libextra/dlist.rs')
| -rw-r--r-- | src/libextra/dlist.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libextra/dlist.rs b/src/libextra/dlist.rs index 77060c4b11e..3cd2d91459f 100644 --- a/src/libextra/dlist.rs +++ b/src/libextra/dlist.rs @@ -356,7 +356,7 @@ impl<T> DList<T> { /// Provide a reverse iterator #[inline] - pub fn rev_iter<'a>(&'a self) -> InvertIterator<&'a T, DListIterator<'a, T>> { + pub fn rev_iter<'a>(&'a self) -> InvertIterator<DListIterator<'a, T>> { self.iter().invert() } @@ -376,8 +376,7 @@ impl<T> DList<T> { } /// Provide a reverse iterator with mutable references #[inline] - pub fn mut_rev_iter<'a>(&'a mut self) -> InvertIterator<&'a mut T, - MutDListIterator<'a, T>> { + pub fn mut_rev_iter<'a>(&'a mut self) -> InvertIterator<MutDListIterator<'a, T>> { self.mut_iter().invert() } @@ -390,7 +389,7 @@ impl<T> DList<T> { /// Consume the list into an iterator yielding elements by value, in reverse #[inline] - pub fn consume_rev_iter(self) -> InvertIterator<T, ConsumeIterator<T>> { + pub fn consume_rev_iter(self) -> InvertIterator<ConsumeIterator<T>> { self.consume_iter().invert() } } |
