aboutsummaryrefslogtreecommitdiffstats
path: root/src/scrobbles.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/scrobbles.rs6
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))
}