diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-07-08 01:42:07 -0700 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-07-08 01:42:07 -0700 |
| commit | 44770ae3a8001de38b33e449889c6444808941fc (patch) | |
| tree | 35b19c50d284bb5a25a3259692dc3783ec95c704 /src/libstd/vec.rs | |
| parent | 96ae000812079b284011571dc18fed0d1fb433d8 (diff) | |
| parent | 641aec74076f8c5735a7d379753194f877866525 (diff) | |
| download | rust-44770ae3a8001de38b33e449889c6444808941fc.tar.gz rust-44770ae3a8001de38b33e449889c6444808941fc.zip | |
Merge pull request #7595 from thestinger/iterator
remove some method resolve workarounds
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 effbc008b6a..84e4358a496 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -191,7 +191,7 @@ impl<'self, T> Iterator<&'self [T]> for VecSplitIterator<'self, T> { return Some(self.v); } - match self.v.iter().position_(|x| (self.pred)(x)) { + match self.v.iter().position(|x| (self.pred)(x)) { None => { self.finished = true; Some(self.v) @@ -1010,7 +1010,7 @@ impl<'self,T:Eq> ImmutableEqVector<T> for &'self [T] { /// Find the first index containing a matching value #[inline] fn position_elem(&self, x: &T) -> Option<uint> { - self.iter().position_(|y| *x == *y) + self.iter().position(|y| *x == *y) } /// Find the last index containing a matching value |
