Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
HarrisonMc555 committed Dec 8, 2022
1 parent 3fc417f commit 7a91719
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1167,7 +1167,9 @@ impl<T> Array2D<T> {
/// # }
///
/// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html
pub fn enumerate_row_major(&self) -> impl DoubleEndedIterator<Item = ((usize, usize), &T)> + Clone {
pub fn enumerate_row_major(
&self,
) -> impl DoubleEndedIterator<Item = ((usize, usize), &T)> + Clone {
self.indices_row_major().map(move |i| (i, &self[i]))
}

@@ -1195,7 +1197,9 @@ impl<T> Array2D<T> {
/// # }
///
/// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html
pub fn enumerate_column_major(&self) -> impl DoubleEndedIterator<Item = ((usize, usize), &T)> + Clone {
pub fn enumerate_column_major(
&self,
) -> impl DoubleEndedIterator<Item = ((usize, usize), &T)> + Clone {
self.indices_column_major().map(move |i| (i, &self[i]))
}

0 comments on commit 7a91719

Please sign in to comment.