Remove Span::unknown (#525)

This commit is contained in:
JT
2021-12-19 18:46:13 +11:00
committed by GitHub
parent b54e9b6bfd
commit 2883d6cd1e
183 changed files with 1291 additions and 1124 deletions

View File

@ -36,7 +36,7 @@ impl Command for SubCommand {
example: "[-50 100.0 25] | math avg",
result: Some(Value::Float {
val: 25.0,
span: Span::unknown(),
span: Span::test_data(),
}),
}]
}
@ -47,7 +47,7 @@ pub fn average(values: &[Value], head: &Span) -> Result<Value, ShellError> {
let total = &sum(
Value::Int {
val: 0,
span: Span::unknown(),
span: *head,
},
values.to_vec(),
*head,