Skip to content

Commit 6cc3119

Browse files
committed
refactor(core): replace transmute with MaybeUninit::array_assume_init
There is one potential use case that was overlooked by commit `61a5f2838`.
1 parent d351813 commit 6cc3119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/r3_core/src/bind.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,8 @@ where
18491849
);
18501850
i += 1;
18511851
}
1852-
crate::utils::mem::transmute(out)
1852+
// Safety: All elements of `out` are initialized
1853+
MaybeUninit::array_assume_init(out)
18531854
}
18541855
}
18551856
}

0 commit comments

Comments
 (0)