Skip to content

Commit 9ae1ed9

Browse files
mcobzarenco9prady9
authored andcommitted
Avoid memory allocation in reorder_v2
1 parent e154956 commit 9ae1ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ pub fn reorder_v2<T>(
568568
where
569569
T: HasAfEnum,
570570
{
571-
let mut new_axes = vec![0, 1, 2, 3];
571+
let mut new_axes = [0, 1, 2, 3];
572572
new_axes[0] = new_axis0;
573573
new_axes[1] = new_axis1;
574574
match next_axes {

0 commit comments

Comments
 (0)