Fix example

This commit is contained in:
Roderick van Domburg 2022-08-03 22:50:21 +02:00
parent 80f0d3c59b
commit a60d63637d
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4

View file

@ -33,10 +33,10 @@ async fn main() {
exit(1);
}
let plist = Playlist::get(&session, plist_uri).await.unwrap();
let plist = Playlist::get(&session, &plist_uri).await.unwrap();
println!("{:?}", plist);
for track_id in plist.tracks() {
let plist_track = Track::get(&session, *track_id).await.unwrap();
let plist_track = Track::get(&session, track_id).await.unwrap();
println!("track: {} ", plist_track.name);
}
}