const FixedVec::new
This commit is contained in:
@@ -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() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user