From d8860b29c97e364679fb799d4bdb110d4d12e49a Mon Sep 17 00:00:00 2001 From: bluss Date: Wed, 29 Apr 2020 14:52:15 +0200 Subject: [PATCH] FIX: in Zip::apply_collect, use `move` on closure --- src/zip/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zip/mod.rs b/src/zip/mod.rs index 182ab7232..2b6612b54 100644 --- a/src/zip/mod.rs +++ b/src/zip/mod.rs @@ -1085,7 +1085,7 @@ macro_rules! map_impl { // For generic elements, use a proxy that counts the number of filled elements, // and can drop the right number of elements on unwinding unsafe { - PartialArray::scope(output.view_mut(), |partial| { + PartialArray::scope(output.view_mut(), move |partial| { debug_assert_eq!(partial.layout().tendency() >= 0, self.layout_tendency >= 0); self.apply_assign_into(partial, f); });