From f6d08705bd909254ef9921d5e5fc0ad2ef31a2ac Mon Sep 17 00:00:00 2001 From: Waffle Lapkin Date: Wed, 24 Jun 2026 15:55:17 +0200 Subject: [PATCH] actually fix compatibility with future rust versions --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 969d4b7..ddbc6d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -197,7 +197,7 @@ impl IntoIterator for HeapArray { // This moves the whole array from heap to the stack and is extremely inefficient. // After is merged, this could use // ` as IntoIterator>::IntoIter`, which keeps the array in place. - <[T; N]>::into_iter(*self.data) + (*self.data).into_iter() } } @@ -461,7 +461,7 @@ impl IntoIterator for HeapArray2D { type IntoIter = <[[T; M]; N] as IntoIterator>::IntoIter; fn into_iter(self) -> Self::IntoIter { - self.data.into_iter() + (*self.data).into_iter() } } @@ -737,7 +737,7 @@ impl IntoIterator for HeapAr type IntoIter = <[[[T; L]; M]; N] as IntoIterator>::IntoIter; fn into_iter(self) -> Self::IntoIter { - self.data.into_iter() + (*self.data).into_iter() } }