mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Run cargo fmt
This commit is contained in:
parent
4c9a8b5cac
commit
c9f1914fc8
1 changed files with 4 additions and 4 deletions
|
@ -673,7 +673,9 @@ impl SpircTask {
|
|||
// Removes current track if it is queued
|
||||
// Returns the index of the next track
|
||||
let current_index = self.state.get_playing_track_index() as usize;
|
||||
if (current_index < self.state.get_track().len()) && self.state.get_track()[current_index].get_queued() {
|
||||
if (current_index < self.state.get_track().len())
|
||||
&& self.state.get_track()[current_index].get_queued()
|
||||
{
|
||||
self.state.mut_track().remove(current_index);
|
||||
current_index
|
||||
} else {
|
||||
|
@ -719,7 +721,6 @@ impl SpircTask {
|
|||
self.state.set_position_measured_at(now as u64);
|
||||
|
||||
self.load_track(continue_playing);
|
||||
|
||||
} else {
|
||||
info!("Not playing next track because there are no more tracks left in queue.");
|
||||
self.state.set_playing_track_index(0);
|
||||
|
@ -727,7 +728,6 @@ impl SpircTask {
|
|||
self.player.stop();
|
||||
self.mixer.stop();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fn handle_prev(&mut self) {
|
||||
|
|
Loading…
Reference in a new issue