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