-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
Description
Brief
There are some places, especially with the container, which are using an array of uninitialized T
, e.g. [MaybeUninit<T>; CAPACITY]
. The array is then initialized with array::from_fn
.
When the array is initialized with the a constant value, e.g. MaybeUninit::uninit()
, instead of using core::array::from_fn(|_| MaybeUninit::uninit())
to initialize the array, [const { MaybeUninit::uninit() }; CAPACITY]
can be used instead.