Skip to content

Commit

Permalink
ConsTuples: remove DoubleEndedIterator implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Jan 30, 2024
1 parent 98d3978 commit 8f33b9d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/cons_tuples_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ macro_rules! impl_cons_iter(
self.iter.fold(accum, move |acc, (($($B,)*), x)| f(acc, ($($B,)* x, )))
}
}

#[allow(non_snake_case)]
impl<X, Iter, $($B),*> DoubleEndedIterator for ConsTuples<Iter, (($($B,)*), X)>
where Iter: DoubleEndedIterator<Item = (($($B,)*), X)>,
{
fn next_back(&mut self) -> Option<Self::Item> {
self.iter.next().map(|(($($B,)*), x)| ($($B,)* x, ))
}
}

);
);

Expand Down

0 comments on commit 8f33b9d

Please sign in to comment.