kyoto7250/zhobo

main thread panic src/app.rs:390:75

Closed this issue · 0 comments

src/app.rs:390:75:
the len is 0 but the index is 0

        if let Some(header_icons) = &header_icons {
            let mut new_headers = vec![String::new(); headers.len()];
            for (index, header) in headers.iter().enumerate() {
                new_headers[index] = format!("{} {}", header, header_icons[index])
                    .trim()
                    .to_string();
            }
            return new_headers;
        }