From 2e6ff9cd87774f46e8aee833a613efbb301043a4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 15 Jul 2025 16:01:36 -0400 Subject: [PATCH] Code cleanup --- src/main.rs | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 17f1cf9..d2907db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,17 +74,25 @@ async fn wipe_data_from_queues( .json::() .await { - Ok(_resp) => match the_rest::wipe_data::coverart_queue::wipe_data(app_base_url, coverart_queue_id).await { - Ok(inner_response) => match inner_response.json::().await { + Ok(_resp) => match the_rest::wipe_data::coverart_queue::wipe_data( + app_base_url, + coverart_queue_id, + ) + .await + { + Ok(inner_response) => match inner_response + .json::() + .await + { Ok(_inner_resp) => { println!("Wiped data from CoverArt queue"); println!("Resp: {_inner_resp:?}"); Ok(()) } - Err(err) => Err(std::io::Error::other(err.to_string())) - } - Err(err) => Err(std::io::Error::other(err.to_string())) - } + Err(err) => Err(std::io::Error::other(err.to_string())), + }, + Err(err) => Err(std::io::Error::other(err.to_string())), + }, Err(err) => Err(std::io::Error::other(err.to_string())), }, Err(err) => Err(std::io::Error::other(err.to_string())),