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

@ -47,7 +47,7 @@ impl Command for SubCommand {
.to_string()
.as_bytes()
.to_vec(),
span: Span::unknown(),
span: Span::test_data(),
}),
},
Example {
@ -55,7 +55,7 @@ impl Command for SubCommand {
example: "1 | into binary",
result: Some(Value::Binary {
val: i64::from(1).to_le_bytes().to_vec(),
span: Span::unknown(),
span: Span::test_data(),
}),
},
Example {
@ -63,7 +63,7 @@ impl Command for SubCommand {
example: "$true | into binary",
result: Some(Value::Binary {
val: i64::from(1).to_le_bytes().to_vec(),
span: Span::unknown(),
span: Span::test_data(),
}),
},
Example {
@ -81,7 +81,7 @@ impl Command for SubCommand {
example: "1.234 | into binary",
result: Some(Value::Binary {
val: 1.234f64.to_le_bytes().to_vec(),
span: Span::unknown(),
span: Span::test_data(),
}),
},
]