diff --git a/src/clients/oauth.rs b/src/clients/oauth.rs index 31da753e..d476c08c 100644 --- a/src/clients/oauth.rs +++ b/src/clients/oauth.rs @@ -212,9 +212,11 @@ pub trait OAuthClient: BaseClient { /// - playlist_id - the id of the playlist /// /// [Reference](https://developer.spotify.com/documentation/web-api/reference/#endpoint-unfollow-playlist) - async fn playlist_unfollow(&self, playlist_id: &PlaylistId) -> ClientResult { + async fn playlist_unfollow(&self, playlist_id: &PlaylistId) -> ClientResult<()> { let url = format!("playlists/{}/followers", playlist_id.id()); - self.endpoint_delete(&url, &json!({})).await + self.endpoint_delete(&url, &json!({})).await; + + Ok(()) } /// Adds tracks to a playlist.