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() } }