diff --git a/src/lib.rs b/src/lib.rs index 44835a6..bb42697 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -636,3 +636,9 @@ impl AsMut<[A::Item]> for ArrayVec { impl fmt::Debug for ArrayVec where A::Item: fmt::Debug { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (**self).fmt(f) } } + +impl Default for ArrayVec { + fn default() -> ArrayVec { + ArrayVec::new() + } +}