Refactor code to use other_track in CmusEvent::StatusChanged

This commit is contained in:
Anas Elgarhy 2023-02-21 04:44:46 +02:00
parent 5488404fb3
commit 607d53a4a0
No known key found for this signature in database
GPG key ID: 0501802A1D496528

View file

@ -81,7 +81,7 @@ impl CmusQueryResponse {
other_track.status, track.status
);
events.push(CmusEvent::StatusChanged(
track.clone(),
other_track.clone(),
other_player_settings.clone(),
));
} else if track.position != other_track.position {