Some cleanup, better subexpressions

This commit is contained in:
JT
2021-09-03 19:35:29 +12:00
parent 82cf6caba4
commit b20c4047d4
4 changed files with 13 additions and 27 deletions

View File

@ -1,7 +1,7 @@
use nu_engine::{eval_block, eval_expression};
use nu_engine::eval_block;
use nu_protocol::ast::Call;
use nu_protocol::engine::{Command, EvaluationContext};
use nu_protocol::{IntoValueStream, Signature, Span, SyntaxShape, Value};
use nu_protocol::{IntoValueStream, Signature, SyntaxShape, Value};
pub struct Each;

View File

@ -1,7 +1,7 @@
use nu_engine::{eval_block, eval_expression};
use nu_protocol::ast::Call;
use nu_protocol::engine::{Command, EvaluationContext};
use nu_protocol::{IntoValueStream, Signature, Span, SyntaxShape, Value};
use nu_protocol::{IntoValueStream, Signature, SyntaxShape, Value};
pub struct For;
@ -36,7 +36,7 @@ impl Command for For {
&self,
context: &EvaluationContext,
call: &Call,
input: Value,
_input: Value,
) -> Result<nu_protocol::Value, nu_protocol::ShellError> {
let var_id = call.positional[0]
.as_var()