chiark / gitweb /
Remove one use of TAIT
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Mar 2022 22:55:41 +0000 (23:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Mar 2022 22:55:41 +0000 (23:55 +0100)
This is our remaining usntable feature.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bundles.rs

index 7b412dd6fc7ebc16b2685296e83342e7711d1be2..a6f3dbafdbd1d4999f3dfb3d6107d176a21abf02 100644 (file)
@@ -423,9 +423,11 @@ impl ZipArchive {
 
 impl<'z> IntoIterator for &'z IndexedZip {
   type Item = (&'z UniCase<String>, ZipIndex);
-  type IntoIter = impl Iterator<Item=Self::Item>;
+  type IntoIter = Box<dyn Iterator<Item=Self::Item> + '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 _
   }
 }