From f08010cfe97086183ec11440a738a5e455669daa Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Mon, 20 Jan 2025 23:28:07 +0100 Subject: [PATCH] fix: Allow usage of deprecated related artists API Until there is an alternative continue using it. --- src/spotify_api.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spotify_api.rs b/src/spotify_api.rs index 3b233736a..a369e1126 100644 --- a/src/spotify_api.rs +++ b/src/spotify_api.rs @@ -680,6 +680,7 @@ impl WebApi { /// Get artists related to the artist with the given `id`. pub fn artist_related_artists(&self, id: &str) -> Result, ()> { + #[allow(deprecated)] self.api_with_retry(|api| api.artist_related_artists(ArtistId::from_id(id).unwrap())) .map(|fa| fa.iter().map(|a| a.into()).collect()) .ok_or(())