From de3b96f0e0343b615559bf6a152b8c47cbf8d23a Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 25 Jul 2025 16:25:37 -0400 Subject: [PATCH] Code formatting --- src/callers/song.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index 61c9ab7..823cd88 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -96,7 +96,7 @@ pub mod request { pub mod get_songs { #[derive(Debug, Default, serde::Deserialize, serde::Serialize)] pub struct Params { - pub id: Option + pub id: Option, } } } @@ -170,7 +170,7 @@ pub mod response { #[derive(Debug, Default, serde::Deserialize, serde::Serialize)] pub struct Response { pub message: String, - pub data: Vec + pub data: Vec, } } } @@ -984,11 +984,15 @@ pub mod endpoint { } } - pub async fn get_songs(axum::Extension(pool): axum::Extension, - axum::extract::Query(params): axum::extract::Query) - -> (axum::http::StatusCode, Json) { - let mut response = super::response::get_songs::Response::default(); + pub async fn get_songs( + axum::Extension(pool): axum::Extension, + axum::extract::Query(params): axum::extract::Query, + ) -> ( + axum::http::StatusCode, + Json, + ) { + let mut response = super::response::get_songs::Response::default(); - (axum::http::StatusCode::OK, axum::Json(response)) + (axum::http::StatusCode::OK, axum::Json(response)) } }