diff --git a/bounded-collections/src/weak_bounded_vec.rs b/bounded-collections/src/weak_bounded_vec.rs index b6f0846e..b0045c48 100644 --- a/bounded-collections/src/weak_bounded_vec.rs +++ b/bounded-collections/src/weak_bounded_vec.rs @@ -119,6 +119,11 @@ impl> Decode for WeakBoundedVec { } impl WeakBoundedVec { + /// Create `Self` with no items. + pub fn new() -> Self { + Self(Vec::new(), Default::default()) + } + /// Create `Self` from `t` without any checks. fn unchecked_from(t: Vec) -> Self { Self(t, Default::default())