From c4a83ee1498486566bab46c63583f639f64914ed Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 13 Jun 2025 19:53:03 -0400 Subject: [PATCH] Formatted code --- src/main.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5720fd9..5782c65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,12 @@ async fn main() -> Result<(), Box> { println!("Saved at: {:?}", save_path); - match api::get_metadata_queue::get(&app_base_url, &song_queue_id).await { + match api::get_metadata_queue::get( + &app_base_url, + &song_queue_id, + ) + .await + { Ok(response) => { match response.json::().await { Ok(response) => { @@ -182,11 +187,18 @@ mod api { } pub mod get_metadata_queue { - pub async fn get(base_url: &String, song_queue_id: &uuid::Uuid) -> Result { + pub async fn get( + base_url: &String, + song_queue_id: &uuid::Uuid, + ) -> Result { let client = reqwest::Client::new(); let endpoint = String::from("api/v2/song/metadata/queue"); let api_url = format!("{}/{}", base_url, endpoint); - client.get(api_url).query(&[("song_queue_id", song_queue_id)]).send().await + client + .get(api_url) + .query(&[("song_queue_id", song_queue_id)]) + .send() + .await } pub mod response {