From 33ab0f36a34938e75e4e721207fe18c97f2d5bf7 Mon Sep 17 00:00:00 2001 From: Sijmen Date: Tue, 25 Apr 2023 16:44:21 +0200 Subject: [PATCH] Format code --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4954d39..14e8e1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,13 +59,15 @@ struct CurrentTemplate { async fn get_current(_req: tide::Request<()>) -> tide::Result { let mut mpd = mpd::connect()?; let song = mpd.currentsong()?; - - let mut template = CurrentTemplate { song: song.clone(), name: None }; + + let mut template = CurrentTemplate { + song: song.clone(), + name: None, + }; if let Some(song) = song { let name = song.title.unwrap_or(song.file.clone()).to_string(); template.name = Some(name); - } Ok(template.into())