Fix formatting

This commit is contained in:
johannesd3 2021-02-13 10:29:00 +01:00
parent 689415a6f1
commit b77f0a18ce
2 changed files with 6 additions and 3 deletions

View file

@ -329,7 +329,10 @@ impl Player {
pub async fn get_end_of_track_future(&self) {
let mut channel = self.get_player_event_channel();
while let Some(event) = channel.next().await {
if matches!(event, PlayerEvent::EndOfTrack { .. } | PlayerEvent::Stopped { .. }) {
if matches!(
event,
PlayerEvent::EndOfTrack { .. } | PlayerEvent::Stopped { .. }
) {
return;
}
}