From ae9b3424744120f9efa155705f0258b5dbc83ad3 Mon Sep 17 00:00:00 2001 From: Koen Bolhuis Date: Wed, 20 Jan 2021 00:57:03 +0100 Subject: [PATCH] Improve docs for the ListenBrainz type --- src/wrapper.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wrapper.rs b/src/wrapper.rs index 414d86b..234a032 100644 --- a/src/wrapper.rs +++ b/src/wrapper.rs @@ -22,7 +22,7 @@ pub struct ListenBrainz { } impl ListenBrainz { - /// Construct a new ListenBrainz client. + /// Construct a new ListenBrainz client that is not authenticated. pub fn new() -> Self { Self { client: Client::new(), @@ -47,6 +47,8 @@ impl ListenBrainz { /// Authenticate this client with the given token. /// If the token is valid, authenticates the client and returns [`Ok`]. + /// In case the client was already authenticated, the old information + /// is discarded and the new token will be used. /// /// # Errors ///