derive Default for Vec1

This commit is contained in:
folex 2020-06-23 10:42:39 +03:00
parent add53640f1
commit a87cf1f528

View File

@ -9,7 +9,7 @@ use serde::{Serialize, Deserialize};
/// `Vec1<T>` represents a non-empty `Vec<T>`. It derefs to `Vec<T>`
/// directly.
#[derive(Clone, PartialEq, Serialize, Deserialize)]
#[derive(Clone, PartialEq, Serialize, Deserialize, Default)]
pub struct Vec1<T>(Vec<T>)
where
T: Debug;