From d95571a77b1ae982c12c32c3bd4eb62a3dacc533 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 13 Jun 2025 21:26:37 -0400 Subject: [PATCH] Simplyfing code and formatting --- src/main.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 16e9f6f..65b9af7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ async fn main() -> Result<(), Box> { } } Err(err) => { - eprintln!("Error: {:?}", err); + eprintln!("Error checking if queue is empty: {:?}", err); } } @@ -101,15 +101,10 @@ async fn process_song(api_url: &String, song_queue_id: &uuid::Uuid) -> Result<() } } } - Err(err) => { - Err(err) - } + Err(err) => Err(err), } } - Err(err) => { - eprintln!("Error fetching song queue data: {:?}", err); - Err(err) - } + Err(err) => Err(err), } }