Fix renamed structures:
VecIterator -> Items MutVecIterator -> MutItems
This commit is contained in:
parent
19d9c356fd
commit
e3183110ad
1 changed files with 5 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue