From 7a917199be9041570de29592d68be27d4de90ddb Mon Sep 17 00:00:00 2001 From: Harrison McCullough Date: Thu, 8 Dec 2022 14:51:33 -0700 Subject: [PATCH] Run rustfmt --- src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f46f9ec..b06284c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1167,7 +1167,9 @@ impl Array2D { /// # } /// /// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html - pub fn enumerate_row_major(&self) -> impl DoubleEndedIterator + Clone { + pub fn enumerate_row_major( + &self, + ) -> impl DoubleEndedIterator + Clone { self.indices_row_major().map(move |i| (i, &self[i])) } @@ -1195,7 +1197,9 @@ impl Array2D { /// # } /// /// [`usize`]: https://doc.rust-lang.org/std/primitive.usize.html - pub fn enumerate_column_major(&self) -> impl DoubleEndedIterator + Clone { + pub fn enumerate_column_major( + &self, + ) -> impl DoubleEndedIterator + Clone { self.indices_column_major().map(move |i| (i, &self[i])) }