We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab3da5 commit 2358ca2Copy full SHA for 2358ca2
src/lib.rs
@@ -2677,7 +2677,7 @@ impl<const N: usize> StaticVec<u8, N> {
2677
#[inline]
2678
pub(crate) const fn bytes_to_data(values: &[u8]) -> MaybeUninit<[u8; N]> {
2679
// Get an uninitialized array of bytes, with `N` capacity.
2680
- let mut res = MaybeUninit::<u8>::uninit_array::<N>();
+ let mut res = MaybeUninit::uninit_array::<N>();
2681
// Move `values.len()` worth of bytes from `values` to `res`. I'm unaware of any other way that
2682
// this could be done currently that would leave us with something usable to create a StaticVec
2683
// for which the generic `N` could be *different* from `values.len()`, so thank
0 commit comments