Implement Default for raw::Client and wrapper::ListenBrainz

Following clippy recommendations
This commit is contained in:
Koen Bolhuis 2021-12-03 12:54:54 +01:00
parent 0c3125bd14
commit 763b5b62ee
2 changed files with 12 additions and 0 deletions

View File

@ -348,3 +348,9 @@ impl Client {
ResponseType::from_response(response)
}
}
impl Default for Client {
fn default() -> Self {
Self::new()
}
}

View File

@ -147,3 +147,9 @@ impl ListenBrainz {
self.submit_listen(ListenType::PlayingNow, None, artist, track, release)
}
}
impl Default for ListenBrainz {
fn default() -> Self {
Self::new()
}
}