Skip to content

Commit

Permalink
style(matrix): remove unneeded bounds on DoubleEndedIterator impl
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Oct 5, 2024
1 parent 03cdeed commit 13bbaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ impl<'a, C> Iterator for RowIterator<'a, C> {
}
}

impl<'a, C> DoubleEndedIterator for RowIterator<'a, C> {
impl<C> DoubleEndedIterator for RowIterator<'_, C> {
fn next_back(&mut self) -> Option<Self::Item> {
(self.row < self.matrix.rows).then(|| {
let row = self.matrix.rows - self.row;
Expand Down Expand Up @@ -942,7 +942,7 @@ impl<'a, C> Iterator for ColumnIterator<'a, C> {
}
}

impl<'a, C> DoubleEndedIterator for ColumnIterator<'a, C> {
impl<C> DoubleEndedIterator for ColumnIterator<'_, C> {
fn next_back(&mut self) -> Option<Self::Item> {
(self.column < self.matrix.columns).then(|| {
self.column += 1;
Expand Down

0 comments on commit 13bbaf9

Please sign in to comment.