diff options
author | cel 🌸 <cel@blos.sm> | 2023-02-16 18:02:20 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-02-16 18:02:20 +0000 |
commit | 675081e9d28ab7f072e82446a52a8bd26382ed66 (patch) | |
tree | 45574a4245eb41b940fc241cdd6b560f10576686 /src/scrobbles.rs | |
parent | 059cf500e7cd98de88c59d6824354a3d2d87fc89 (diff) | |
download | blossom-675081e9d28ab7f072e82446a52a8bd26382ed66.tar.gz blossom-675081e9d28ab7f072e82446a52a8bd26382ed66.tar.bz2 blossom-675081e9d28ab7f072e82446a52a8bd26382ed66.zip |
improve error handling
Diffstat (limited to '')
-rw-r--r-- | src/scrobbles.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String>, |