Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(endpoint): use array::from_fn instead of unsafe MaybeUninit
With Rust 1.63.0 one can initialize a `std::array` via `std::array::from_fn`. https://doc.rust-lang.org/std/array/fn.from_fn.html Thus there is no need to start with an uninitialized array via `MaybeUninit`, initialize it and then use `unsafe` to `assume_init`. Instead one can initialize the array with the concrete elements right away.
- Loading branch information