From 675081e9d28ab7f072e82446a52a8bd26382ed66 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 16 Feb 2023 18:02:20 +0000 Subject: improve error handling --- src/scrobbles.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scrobbles.rs') diff --git a/src/scrobbles.rs b/src/scrobbles.rs index 07b1ad1..a6d4a54 100644 --- a/src/scrobbles.rs +++ b/src/scrobbles.rs @@ -10,7 +10,7 @@ pub async fn get_now_playing( Ok(NowPlayingData::new(playingnow)) } -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, Default)] pub struct NowPlayingData { pub is_scrobbling: bool, pub song: Option, -- cgit