const FixedVec::new

This commit is contained in:
Intege-rs
2025-01-05 02:59:21 -05:00
parent 0bc1ede256
commit 52a63d4c3f

View File

@@ -12,7 +12,7 @@ pub struct FixedVec<const MAX_LEN: usize, T> {
impl<const MAX_LEN: usize, T: Sized> FixedVec<MAX_LEN, T> { impl<const MAX_LEN: usize, T: Sized> FixedVec<MAX_LEN, T> {
pub fn new() -> Self { pub const fn new() -> Self {
unsafe { core::mem::zeroed() } unsafe { core::mem::zeroed() }
} }