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/vec.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/vec.rs')
| -rw-r--r-- | src/libstd/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index 8dbae43689d..30f2b692452 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -2168,7 +2168,7 @@ pub struct VecIterator<'self, T> { iterator!{impl VecIterator -> &'self T} double_ended_iterator!{impl VecIterator -> &'self T} random_access_iterator!{impl VecIterator -> &'self T} -pub type VecRevIterator<'self, T> = InvertIterator<&'self T, VecIterator<'self, T>>; +pub type VecRevIterator<'self, T> = InvertIterator<VecIterator<'self, T>>; impl<'self, T> Clone for VecIterator<'self, T> { fn clone(&self) -> VecIterator<'self, T> { *self } @@ -2184,7 +2184,7 @@ pub struct VecMutIterator<'self, T> { iterator!{impl VecMutIterator -> &'self mut T} double_ended_iterator!{impl VecMutIterator -> &'self mut T} random_access_iterator!{impl VecMutIterator -> &'self mut T} -pub type VecMutRevIterator<'self, T> = InvertIterator<&'self mut T, VecMutIterator<'self, T>>; +pub type VecMutRevIterator<'self, T> = InvertIterator<VecMutIterator<'self, T>>; /// An iterator that moves out of a vector. #[deriving(Clone)] |
