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)) } }