Remove all uses of array_assume_init

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
Alex Saveau
2022-10-16 21:01:28 -07:00
parent 8be3ce9056
commit 55d71c61b8
6 changed files with 10 additions and 11 deletions

View File

@@ -912,7 +912,7 @@ where
mem::forget(guard);
// SAFETY: All elements of the array were populated in the loop above.
let output = unsafe { MaybeUninit::array_assume_init(array) };
let output = unsafe { array.transpose().assume_init() };
Ok(Try::from_output(output))
}