Skip to content

Commit 2358ca2

Browse files
Small consistency tweak
1 parent 4ab3da5 commit 2358ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ impl<const N: usize> StaticVec<u8, N> {
26772677
#[inline]
26782678
pub(crate) const fn bytes_to_data(values: &[u8]) -> MaybeUninit<[u8; N]> {
26792679
// Get an uninitialized array of bytes, with `N` capacity.
2680-
let mut res = MaybeUninit::<u8>::uninit_array::<N>();
2680+
let mut res = MaybeUninit::uninit_array::<N>();
26812681
// Move `values.len()` worth of bytes from `values` to `res`. I'm unaware of any other way that
26822682
// this could be done currently that would leave us with something usable to create a StaticVec
26832683
// for which the generic `N` could be *different* from `values.len()`, so thank

0 commit comments

Comments
 (0)