Add spans to all commands

This commit is contained in:
Joscha 2022-01-09 15:05:50 +01:00
parent e0b6c839e2
commit b430f1594f
6 changed files with 23 additions and 21 deletions

View file

@ -331,8 +331,8 @@ impl File {
.collect::<Vec<_>>();
for i in 0..commands.len() {
let curr = commands[i];
let next = commands.get(i + 1).copied();
let curr = &commands[i].value;
let next = commands.get(i + 1).map(|c| &c.value);
result.push_str(&format!("{}", curr));