From 500338693610590ceed4f1069cdc29917187ebab Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 17 Oct 2021 05:14:24 +0200 Subject: [PATCH] Fix comments --- src/spotify.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spotify.rs b/src/spotify.rs index 5376840..0fd7dc3 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -16,6 +16,7 @@ pub struct Spotify { } impl Spotify { + /// Create new instance pub async fn new( username: &str, @@ -26,7 +27,7 @@ impl Spotify { // librespot let credentials = Credentials::with_password(username, password); let session = Session::connect(SessionConfig::default(), credentials, None).await?; - //rspoitfy + //aspotify let credentials = ClientCredentials { id: client_id.to_string(), secret: client_secret.to_string(), @@ -145,6 +146,7 @@ impl Spotify { } } + /// Get all tracks from artist pub async fn full_artist(&self, id: &str) -> Result, SpotifyError> { let mut items = vec![]; let mut offset = 0; @@ -171,7 +173,6 @@ impl Spotify { } } - impl Clone for Spotify { fn clone(&self) -> Self { Self {