Add Default implementation for ArrayVec

This commit is contained in:
Tobias Bucher
2015-09-10 13:04:30 +01:00
parent 9afff02a69
commit 32832aa0f2
+6
View File
@@ -636,3 +636,9 @@ impl<A: Array> AsMut<[A::Item]> for ArrayVec<A> {
impl<A: Array> fmt::Debug for ArrayVec<A> where A::Item: fmt::Debug {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (**self).fmt(f) }
}
impl<A: Array> Default for ArrayVec<A> {
fn default() -> ArrayVec<A> {
ArrayVec::new()
}
}