about summary refs log tree commit diff
path: root/src/libextra/ringbuf.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/libextra/ringbuf.rs
parentd7c9bb4b688ff20a3fd1d4ff1a11bb4dcbdc2c47 (diff)
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/ringbuf.rs')
-rw-r--r--src/libextra/ringbuf.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/ringbuf.rs b/src/libextra/ringbuf.rs
index f46af664b18..7c940445e77 100644
--- a/src/libextra/ringbuf.rs
+++ b/src/libextra/ringbuf.rs
@@ -184,7 +184,7 @@ impl<T> RingBuf<T> {
     }
 
     /// Back-to-front iterator.
-    pub fn rev_iter<'a>(&'a self) -> InvertIterator<&'a T, RingBufIterator<'a, T>> {
+    pub fn rev_iter<'a>(&'a self) -> InvertIterator<RingBufIterator<'a, T>> {
         self.iter().invert()
     }
 
@@ -195,7 +195,7 @@ impl<T> RingBuf<T> {
     }
 
     /// Back-to-front iterator which returns mutable values.
-    pub fn mut_rev_iter<'a>(&'a mut self) -> InvertIterator<&'a mut T, RingBufMutIterator<'a, T>> {
+    pub fn mut_rev_iter<'a>(&'a mut self) -> InvertIterator<RingBufMutIterator<'a, T>> {
         self.mut_iter().invert()
     }
 }