add missing semicolons

This commit is contained in:
figsoda 2020-10-31 15:37:20 -04:00
parent 3f1a4b138c
commit 6d7579002d

View file

@ -177,10 +177,10 @@ async fn run() -> Result<()> {
selected = status.song.map_or(0, |song| song.pos); selected = status.song.map_or(0, |song| song.pos);
} else if selected == len - 1 { } else if selected == len - 1 {
if cfg.cycle { if cfg.cycle {
selected = 0 selected = 0;
} }
} else { } else {
selected += 1 selected += 1;
} }
liststate.select(Some(selected)); liststate.select(Some(selected));
tx.send(Command::UpdateFrame).await?; tx.send(Command::UpdateFrame).await?;
@ -191,10 +191,10 @@ async fn run() -> Result<()> {
selected = status.song.map_or(0, |song| song.pos); selected = status.song.map_or(0, |song| song.pos);
} else if selected == 0 { } else if selected == 0 {
if cfg.cycle { if cfg.cycle {
selected = len - 1 selected = len - 1;
} }
} else { } else {
selected -= 1 selected -= 1;
} }
liststate.select(Some(selected)); liststate.select(Some(selected));
tx.send(Command::UpdateFrame).await?; tx.send(Command::UpdateFrame).await?;