From ecfee4c5420bdcdb3a471e323ba6488f8852baab Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Fri, 4 Nov 2022 18:07:28 +1300 Subject: [PATCH] Remove unnecessary clone in par-each (#6995) * Remove unnecessary clone in par-each * clippy --- crates/nu-command/src/filters/par_each.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/nu-command/src/filters/par_each.rs b/crates/nu-command/src/filters/par_each.rs index 6fb1d1cf6d..d1d2572753 100644 --- a/crates/nu-command/src/filters/par_each.rs +++ b/crates/nu-command/src/filters/par_each.rs @@ -65,7 +65,6 @@ impl Command for ParEach { let numbered = call.has_flag("numbered"); let metadata = input.metadata(); let ctrlc = engine_state.ctrlc.clone(); - let engine_state = engine_state.clone(); let block_id = capture_block.block_id; let mut stack = stack.captures_to_stack(&capture_block.captures); let span = call.head; @@ -107,7 +106,7 @@ impl Command for ParEach { let val_span = x.span(); match eval_block( - &engine_state, + engine_state, &mut stack, block, x.into_pipeline_data(), @@ -159,7 +158,7 @@ impl Command for ParEach { let val_span = x.span(); match eval_block( - &engine_state, + engine_state, &mut stack, block, x.into_pipeline_data(), @@ -210,7 +209,7 @@ impl Command for ParEach { let val_span = x.span(); match eval_block( - &engine_state, + engine_state, &mut stack, block, x.into_pipeline_data(), @@ -269,7 +268,7 @@ impl Command for ParEach { } match eval_block( - &engine_state, + engine_state, &mut stack, block, x.into_pipeline_data(), @@ -294,7 +293,7 @@ impl Command for ParEach { } eval_block( - &engine_state, + engine_state, &mut stack, block, x.into_pipeline_data(),