From 687fefd791ac3b0da8feb030ad64922bcf3692b5 Mon Sep 17 00:00:00 2001 From: onthebridgetonowhere <71919805+onthebridgetonowhere@users.noreply.github.com> Date: Thu, 2 Dec 2021 22:07:36 +0100 Subject: [PATCH] Remove Arc from Arguments (#405) --- crates/nu-command/src/strings/str_/trim/command.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/nu-command/src/strings/str_/trim/command.rs b/crates/nu-command/src/strings/str_/trim/command.rs index ef19899600..d969231225 100644 --- a/crates/nu-command/src/strings/str_/trim/command.rs +++ b/crates/nu-command/src/strings/str_/trim/command.rs @@ -4,7 +4,6 @@ use nu_protocol::{ engine::{Command, EngineState, Stack}, Example, PipelineData, ShellError, Signature, Span, SyntaxShape, Value, }; -use std::sync::Arc; #[derive(Clone)] pub struct SubCommand; @@ -126,10 +125,10 @@ where { let head = call.head; let (options, closure_flags, input) = ( - Arc::new(Arguments { + Arguments { character: call.get_flag(engine_state, stack, "char")?, column_paths: call.rest(engine_state, stack, 0)?, - }), + }, ClosureFlags { all_flag: call.has_flag("all"), left_trim: call.has_flag("left"),