mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Introduce metadata into the pipeline (#397)
This commit is contained in:
@ -126,14 +126,14 @@ fn test2(call: &EvaluatedCall, input: &Value) -> Result<Value, ShellError> {
|
||||
let vals = (0..3)
|
||||
.map(|v| Value::Int {
|
||||
val: v * i,
|
||||
span: call.head.clone(),
|
||||
span: call.head,
|
||||
})
|
||||
.collect::<Vec<Value>>();
|
||||
|
||||
Value::Record {
|
||||
cols: cols.clone(),
|
||||
vals,
|
||||
span: call.head.clone(),
|
||||
span: call.head,
|
||||
}
|
||||
})
|
||||
.collect::<Vec<Value>>();
|
||||
|
Reference in New Issue
Block a user