diff options
author | cel 🌸 <cel@blos.sm> | 2023-06-20 14:54:05 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-06-20 14:54:05 +0100 |
commit | fefea214d392c306d1b9c54baa9a5762d702e12c (patch) | |
tree | e802dbf8b1ed8b8f324639b0c93bfd3907dd9d0f /src/scrobbles.rs | |
parent | 4e24495b159df0dbc4f503843c08ccd452af616a (diff) | |
download | blossom-fefea214d392c306d1b9c54baa9a5762d702e12c.tar.gz blossom-fefea214d392c306d1b9c54baa9a5762d702e12c.tar.bz2 blossom-fefea214d392c306d1b9c54baa9a5762d702e12c.zip |
remove database
Diffstat (limited to 'src/scrobbles.rs')
-rw-r--r-- | src/scrobbles.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/scrobbles.rs b/src/scrobbles.rs index a6d4a54..d4f6d31 100644 --- a/src/scrobbles.rs +++ b/src/scrobbles.rs @@ -1,11 +1,9 @@ use listenbrainz::raw::response::UserPlayingNowResponse; use serde::{Deserialize, Serialize}; -use crate::error::BlossomError; +use crate::Result; -pub async fn get_now_playing( - client: &listenbrainz::raw::Client, -) -> Result<NowPlayingData, BlossomError> { +pub async fn get_now_playing(client: &listenbrainz::raw::Client) -> Result<NowPlayingData> { let playingnow = client.user_playing_now("celblossom")?; Ok(NowPlayingData::new(playingnow)) } |