From 4a022f51a9f4c649a3e8191d63bf1ba94307a527 Mon Sep 17 00:00:00 2001 From: Mark Mackey Date: Fri, 8 Dec 2023 15:41:06 -0600 Subject: [PATCH] Added missing IntoIterator trait for FixedVector --- src/fixed_vector.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/fixed_vector.rs b/src/fixed_vector.rs index bfabac6..c1463c3 100644 --- a/src/fixed_vector.rs +++ b/src/fixed_vector.rs @@ -168,6 +168,15 @@ impl<'a, T, N: Unsigned> IntoIterator for &'a FixedVector { } } +impl IntoIterator for FixedVector { + type Item = T; + type IntoIter = std::vec::IntoIter; + + fn into_iter(self) -> Self::IntoIter { + self.vec.into_iter() + } +} + impl tree_hash::TreeHash for FixedVector where T: tree_hash::TreeHash,