From dd30c210efe414011788f875325f745bed18daea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 30 Mar 2022 23:55:41 +0100 Subject: [PATCH] Remove one use of TAIT This is our remaining usntable feature. Signed-off-by: Ian Jackson --- src/bundles.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bundles.rs b/src/bundles.rs index 7b412dd6..a6f3dbaf 100644 --- a/src/bundles.rs +++ b/src/bundles.rs @@ -423,9 +423,11 @@ impl ZipArchive { impl<'z> IntoIterator for &'z IndexedZip { type Item = (&'z UniCase, ZipIndex); - type IntoIter = impl Iterator; + type IntoIter = Box + 'z>; fn into_iter(self) -> Self::IntoIter { - self.members.iter().map(|(name,&index)| (name, ZipIndex(index))) + Box::new( + self.members.iter().map(|(name,&index)| (name, ZipIndex(index))) + ) as _ } } -- 2.30.2