diff --git a/crates/radicle-protocol/src/bounded.rs b/crates/radicle-protocol/src/bounded.rs index 06e51aa0..ef67bd93 100644 --- a/crates/radicle-protocol/src/bounded.rs +++ b/crates/radicle-protocol/src/bounded.rs @@ -180,6 +180,15 @@ impl BoundedVec { } } +impl IntoIterator for BoundedVec { + type Item = T; + type IntoIter = std::vec::IntoIter; + + fn into_iter(self) -> Self::IntoIter { + self.v.into_iter() + } +} + impl ops::Deref for BoundedVec { type Target = [T];