mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Remove Arc from Arguments (#405)
This commit is contained in:
parent
ccd5f59314
commit
687fefd791
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue