cargo fmt

This commit is contained in:
Henrik Friedrichsen
2019-03-03 15:53:54 +01:00
parent 335d9cfad2
commit 909ce8c81d
2 changed files with 13 additions and 10 deletions

View File

@@ -48,7 +48,11 @@ impl QueueView {
// <enter> dequeues the selected track
let queue_ref = queue_ref.clone();
button.add_callback(Key::Enter, move |_cursive| {
let track = queue_ref.lock().unwrap().remove(index).expect("could not dequeue track");
let track = queue_ref
.lock()
.unwrap()
.remove(index)
.expect("could not dequeue track");
let trackid = SpotifyId::from_base62(&track.id).expect("could not load track");
spotify.load(trackid);
spotify.play();