mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:15:53 +02:00
Pipeline sink refactor (#1359)
* Refactor pipeline ahead of block changes. Add '-c' commandline option * Update pipelining an error value * Fmt * Clippy * Add stdin redirect for -c flag * Add stdin redirect for -c flag
This commit is contained in:
@ -204,6 +204,12 @@ pub struct SpannedExpression {
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
impl SpannedExpression {
|
||||
pub fn new(expr: Expression, span: Span) -> SpannedExpression {
|
||||
SpannedExpression { expr, span }
|
||||
}
|
||||
}
|
||||
|
||||
impl std::ops::Deref for SpannedExpression {
|
||||
type Target = Expression;
|
||||
|
||||
|
Reference in New Issue
Block a user