const FixedVec::new
This commit is contained in:
1 parent
0bc1ede256
commit
52a63d4c3f
1 file changed
+1
-1
@@ -12,7 +12,7 @@ pub struct FixedVec<const MAX_LEN: usize, 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() }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user