Skip to content

Commit

Permalink
Remove unnecessary entry copying
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Dec 15, 2023
1 parent f618f4e commit 935d11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/hyperqueue/src/server/client/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
})
Expand Down

0 comments on commit 935d11b

Please sign in to comment.