const generic expr based fixed length array manipulation crate
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 049992b..164cd7f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -441,8 +441,9 @@ impl<T, const N: usize> ArrayTools<T, N> for [T; N] {
self
}
- fn rev(self) -> Self {
- self.into_iter().rev().carr()
+ fn rev(mut self) -> Self {
+ self.reverse();
+ self
}
fn interleave(self, with: [T; N]) -> [T; N * 2] {