From 781d541fbe03789406dfb91e79edda0f2d5f06a9 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sat, 26 Apr 2025 16:07:22 -0400 Subject: [PATCH] Formatting --- src/callers/song.rs | 1 - src/main.rs | 15 ++++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index 7adc619..d914a55 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -47,7 +47,6 @@ mod song_queue { pub id: uuid::Uuid, pub filename: String, pub status: String, - // pub data: Vec, } pub async fn insert( diff --git a/src/main.rs b/src/main.rs index ab33229..f2d73dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -307,16 +307,17 @@ mod tests { .method(axum::http::Method::GET) .uri(crate::callers::endpoints::NEXTQUEUESONG) .header(axum::http::header::CONTENT_TYPE, "application/json") - .body(axum::body::Body::empty()).unwrap(); + .body(axum::body::Body::empty()) + .unwrap(); match app.clone().oneshot(fetch_req).await { Ok(response) => { - let body = axum::body::to_bytes(response.into_body(), usize::MAX) - .await - .unwrap(); - let resp: crate::callers::song::response::fetch_queue_song::Response = - serde_json::from_slice(&body).unwrap(); - assert_eq!(false, resp.data.is_empty(), "Should not be empty"); + let body = axum::body::to_bytes(response.into_body(), usize::MAX) + .await + .unwrap(); + let resp: crate::callers::song::response::fetch_queue_song::Response = + serde_json::from_slice(&body).unwrap(); + assert_eq!(false, resp.data.is_empty(), "Should not be empty"); } Err(err) => { assert!(false, "Error: {:?}", err);