mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Assignment instead of mem::repalce()
This commit is contained in:
parent
1518459048
commit
8c3f587f30
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ impl PlayerState {
|
||||||
match mem::replace(self, Invalid) {
|
match mem::replace(self, Invalid) {
|
||||||
Playing { track_id, end_of_track, ..} => {
|
Playing { track_id, end_of_track, ..} => {
|
||||||
end_of_track.send(());
|
end_of_track.send(());
|
||||||
let old_state = mem::replace(self, EndOfTrack { track_id });
|
*self = EndOfTrack { track_id };
|
||||||
},
|
},
|
||||||
_ => panic!("Called playing_to_end_of_track in non-playing state.")
|
_ => panic!("Called playing_to_end_of_track in non-playing state.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue