replace range loop with enumerate

This commit is contained in:
figsoda 2020-11-02 18:43:00 -05:00
parent 7d1266db3b
commit 901dbcdb83

View file

@ -182,14 +182,14 @@ pub fn render(
}; };
let mut items = Vec::with_capacity(len); let mut items = Vec::with_capacity(len);
for i in 0 .. len { for (i, track) in queue.iter().enumerate() {
let mut spans = Vec::new(); let mut spans = Vec::new();
flatten( flatten(
&mut spans, &mut spans,
txts, txts,
status, status,
current_track, current_track,
Some(&queue[i]), Some(track),
i == selected, i == selected,
Style::default(), Style::default(),
); );