From 935d11bafda55e759e9a081b3e7f5bad812d0f68 Mon Sep 17 00:00:00 2001 From: Ada Bohm Date: Fri, 15 Dec 2023 14:44:38 +0100 Subject: [PATCH] Remove unnecessary entry copying --- crates/hyperqueue/src/server/client/submit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/hyperqueue/src/server/client/submit.rs b/crates/hyperqueue/src/server/client/submit.rs index 421e54dbd..806adf668 100644 --- a/crates/hyperqueue/src/server/client/submit.rs +++ b/crates/hyperqueue/src/server/client/submit.rs @@ -220,10 +220,10 @@ fn build_tasks_array( Some(entries) => ids .iter() .zip(tako_base_id..) - .zip(entries.iter()) + .zip(entries.into_iter()) .map(|((task_id, tako_id), entry)| { build_task_conf( - serialize_task_body(&ctx, task_id.into(), Some(entry.clone()), &task_desc), + serialize_task_body(&ctx, task_id.into(), Some(entry), &task_desc), tako_id, ) })