mirror of
https://github.com/figsoda/mmtc
synced 2024-11-22 15:13:03 +00:00
replace range loop with enumerate
This commit is contained in:
parent
7d1266db3b
commit
901dbcdb83
1 changed files with 2 additions and 2 deletions
|
@ -182,14 +182,14 @@ pub fn render(
|
|||
};
|
||||
|
||||
let mut items = Vec::with_capacity(len);
|
||||
for i in 0 .. len {
|
||||
for (i, track) in queue.iter().enumerate() {
|
||||
let mut spans = Vec::new();
|
||||
flatten(
|
||||
&mut spans,
|
||||
txts,
|
||||
status,
|
||||
current_track,
|
||||
Some(&queue[i]),
|
||||
Some(track),
|
||||
i == selected,
|
||||
Style::default(),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue