From 7ae17e0964b9f869881f4122cd0e1ccc19bee0d4 Mon Sep 17 00:00:00 2001 From: blake2-ppc Date: Fri, 26 Jul 2013 00:55:05 +0200 Subject: 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 now. --- src/libextra/dlist.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/libextra/dlist.rs') 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 DList { /// 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> { self.iter().invert() } @@ -376,8 +376,7 @@ impl DList { } /// 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> { self.mut_iter().invert() } @@ -390,7 +389,7 @@ impl DList { /// Consume the list into an iterator yielding elements by value, in reverse #[inline] - pub fn consume_rev_iter(self) -> InvertIterator> { + pub fn consume_rev_iter(self) -> InvertIterator> { self.consume_iter().invert() } } -- cgit 1.4.1-3-g733a5