From a60d63637daa0976ccc90928751b37191e6a0b60 Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Wed, 3 Aug 2022 22:50:21 +0200 Subject: [PATCH] Fix example --- examples/playlist_tracks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/playlist_tracks.rs b/examples/playlist_tracks.rs index c2cf419a..ddf456ac 100644 --- a/examples/playlist_tracks.rs +++ b/examples/playlist_tracks.rs @@ -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); } }