mirror of
https://github.com/nushell/nushell.git
synced 2025-02-22 05:21:44 +01:00
Remove Arc from Arguments (#405)
This commit is contained in:
parent
ccd5f59314
commit
687fefd791
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user