From c454f7a9af3da9d3040c6577e29cb16546ea530e Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 15 Jul 2025 15:09:22 -0400 Subject: [PATCH] Code formatting --- src/main.rs | 17 +++++++++++++++-- src/the_rest.rs | 6 +++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index a173c56..2cd73d2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,7 +24,12 @@ async fn main() -> Result<(), Box> { // TODO: Do something with the result later match some_work(&app_base_url, &song_queue_id).await { - Ok((song, coverart, (song_queue_id, song_queue_path), (coverart_queue_id, coverart_queue_path))) => { + Ok(( + song, + coverart, + (song_queue_id, song_queue_path), + (coverart_queue_id, coverart_queue_path), + )) => { // TODO: Wipe data from song and coverart queues // TODO: Cleanup files in local filesystem } @@ -72,7 +77,15 @@ async fn is_queue_empty( async fn some_work( app_base_url: &String, song_queue_id: &uuid::Uuid, -) -> Result<(icarus_models::song::Song, icarus_models::coverart::CoverArt, (uuid::Uuid, String), (uuid::Uuid, String)), std::io::Error> { +) -> Result< + ( + icarus_models::song::Song, + icarus_models::coverart::CoverArt, + (uuid::Uuid, String), + (uuid::Uuid, String), + ), + std::io::Error, +> { match prep_song(app_base_url, song_queue_id).await { Ok((song_queue_path, coverart_queue_path, metadata, coverart_queue_id)) => { match apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await { diff --git a/src/the_rest.rs b/src/the_rest.rs index e319262..8b12392 100644 --- a/src/the_rest.rs +++ b/src/the_rest.rs @@ -47,7 +47,11 @@ pub mod create_song { // TODO: Create coverart pub mod create_coverart { - pub async fn create(base_url: &String, song_id: &uuid::Uuid, coverart_queue_id: &uuid::Uuid) -> Result { + pub async fn create( + base_url: &String, + song_id: &uuid::Uuid, + coverart_queue_id: &uuid::Uuid, + ) -> Result { let client = reqwest::Client::builder().build()?; let url = format!("{base_url}/api/v2/coverart"); let payload = get_payload(song_id, coverart_queue_id);