const FixedVec::new

This commit is contained in:
Intege-rs committed 2025-01-05 02:59:21 -05:00
1 parent 0bc1ede256
commit 52a63d4c3f
1 file changed
+1 -1
+1 -1
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() }
} }