Fix renamed structures:

VecIterator -> Items
	MutVecIterator -> MutItems
This commit is contained in:
Colin Sherratt 2014-01-19 21:04:48 -05:00
parent 19d9c356fd
commit e3183110ad

View file

@ -15,7 +15,7 @@
#[macro_escape]; #[macro_escape];
use std::vec::{VecIterator, VecMutIterator}; use std::vec::{Items, MutItems};
pub trait Array pub trait Array
< <
@ -29,8 +29,8 @@ pub trait Array
fn as_mut_slice<'a>(&'a mut self) -> &'a mut Slice; fn as_mut_slice<'a>(&'a mut self) -> &'a mut Slice;
fn from_slice(slice: Slice) -> Self; fn from_slice(slice: Slice) -> Self;
fn build(builder: |i: uint| -> T) -> Self; fn build(builder: |i: uint| -> T) -> Self;
fn iter<'a>(&'a self) -> VecIterator<'a, T>; fn iter<'a>(&'a self) -> Items<'a, T>;
fn mut_iter<'a>(&'a mut self) -> VecMutIterator<'a, T>; fn mut_iter<'a>(&'a mut self) -> MutItems<'a, T>;
/// Swap two elements of the type in place. /// Swap two elements of the type in place.
#[inline] #[inline]
@ -78,12 +78,12 @@ macro_rules! array(
} }
#[inline] #[inline]
fn iter<'a>(&'a self) -> ::std::vec::VecIterator<'a, $T> { fn iter<'a>(&'a self) -> ::std::vec::Items<'a, $T> {
self.as_slice().iter() self.as_slice().iter()
} }
#[inline] #[inline]
fn mut_iter<'a>(&'a mut self) -> ::std::vec::VecMutIterator<'a, $T> { fn mut_iter<'a>(&'a mut self) -> ::std::vec::MutItems<'a, $T> {
self.as_mut_slice().mut_iter() self.as_mut_slice().mut_iter()
} }