@@ 224,7 224,7 @@ fn update_log(
let index_spaces = status.actions.len().to_string().len();
- for (i, _action) in status.actions.iter().enumerate() {
+ for (i, log) in status.log.iter().enumerate() {
let spaces = " ".repeat(index_spaces - i.to_string().len());
let index_text = TextSection {
value: format!("{}{}. ", spaces, i),
@@ 235,8 235,6 @@ fn update_log(
};
let mut sections = vec![index_text];
-
- let log = status.log.get(i).unwrap();
for section in &log.sections {
match section {
LogSection::Normal(value) => {