mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:45:08 +02:00
Remove some clones and improve when autoview reads config (#3285)
This commit is contained in:
@ -425,9 +425,11 @@ fn parse_invocation(
|
||||
};
|
||||
|
||||
scope.enter_scope();
|
||||
let (classified_block, err) = classify_block(&lite_block, scope);
|
||||
let (mut classified_block, err) = classify_block(&lite_block, scope);
|
||||
scope.exit_scope();
|
||||
|
||||
classified_block.set_redirect(ExternalRedirection::Stdout);
|
||||
|
||||
(
|
||||
SpannedExpression::new(Expression::Invocation(classified_block), lite_arg.span),
|
||||
err,
|
||||
@ -2044,6 +2046,7 @@ pub fn classify_block(
|
||||
output.definitions.insert(name, definition.clone());
|
||||
}
|
||||
}
|
||||
output.infer_params();
|
||||
|
||||
(output, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user