mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 21:10:28 +00:00
Implement Default for Vec
This commit is contained in:
parent
845257cecf
commit
0f7a519475
@ -257,6 +257,15 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, N> Default for Vec<T, N>
|
||||
where
|
||||
N: ArrayLength<T>,
|
||||
{
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, N> fmt::Debug for Vec<T, N>
|
||||
where
|
||||
T: fmt::Debug,
|
||||
|
Loading…
x
Reference in New Issue
Block a user