Skip to content

Commit

Permalink
mob next [ci-skip] [ci skip] [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
NoneTheWisr committed Jan 16, 2022
1 parent f473fee commit aa2db90
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,32 +872,6 @@ impl<I,T,E> Iterator for EnumerateOk<I>
{
type Item = Result<(usize,T),E>;

// fn next(&mut self) -> Option<Self::Item> {
// match self.iter.next() {
// Some(Ok(v)) =>
// {
// let index = self.index;
// self.index += 1;
// Some(Ok((index, v)))
// }
// Some(Err(e)) => Some(Err(e)),
// None => None
// }
// }

// fn next(&mut self) -> Option<Self::Item> {
// self.iter.next().map(|item| {
// match item {
// Ok(v) => {
// let index = self.index;
// self.index += 1;
// Ok((index,v))
// },
// Err(e) => Err(e),
// }
// })
// }

fn next(&mut self) -> Option<Self::Item> {
self.iter.next().map(|item| {
item.map(|v| {
Expand Down

0 comments on commit aa2db90

Please sign in to comment.