Skip to content

Commit

Permalink
FIX: in Zip::apply_collect, use move on closure
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Apr 29, 2020
1 parent 9e37b32 commit d8860b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zip/mod.rs
Expand Up @@ -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);
});
Expand Down

0 comments on commit d8860b2

Please sign in to comment.