From f72ab1cbdfbb5504f7d3ab20b66401e06163247b Mon Sep 17 00:00:00 2001 From: Koen Bolhuis Date: Wed, 20 Jan 2021 00:26:27 +0100 Subject: [PATCH] Add error documentation to ListenBrainz::playing_now --- src/wrapper.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wrapper.rs b/src/wrapper.rs index 79d5332..35dbb1a 100644 --- a/src/wrapper.rs +++ b/src/wrapper.rs @@ -119,6 +119,12 @@ impl ListenBrainz { } /// Submit a currently playing track. + /// + /// # Errors + /// + /// If not authenticated, returns [`Error::NotAuthenticated`]. + /// Otherwise, see the Errors section of [`Client`] for more info on + /// what errors might occur. pub fn playing_now(&self, artist: &str, track: &str, release: &str) -> Result<(), Error> { self.submit_listen(ListenType::PlayingNow, None, artist, track, release) }