From 922a6b9a350cda47b7a7423daa7d0cf58cc9544a Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 22 Aug 2025 15:23:21 -0400 Subject: [PATCH] tsk-170: Code formatting --- src/callers/song.rs | 1 - src/main.rs | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index 00cb740..b704d9a 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -877,7 +877,6 @@ pub mod endpoint { use crate::callers::song::song_queue; - /// Endpoint to queue a song. Starts the process and places the song in a queue #[utoipa::path( post, diff --git a/src/main.rs b/src/main.rs index 05cfc09..f2fce76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,6 @@ pub mod db { } } - #[tokio::main] async fn main() { // initialize tracing @@ -48,8 +47,8 @@ async fn main() { pub mod init { use axum::routing::{delete, get, patch, post}; use std::time::Duration; - use utoipa::OpenApi; use tower_http::timeout::TimeoutLayer; + use utoipa::OpenApi; use axum::http::{ HeaderValue, Method, @@ -223,7 +222,10 @@ pub mod init { routes() .await - .merge(utoipa_swagger_ui::SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi())) + .merge( + utoipa_swagger_ui::SwaggerUi::new("/swagger-ui") + .url("/api-docs/openapi.json", ApiDoc::openapi()), + ) .layer(axum::Extension(pool)) .layer(axum::extract::DefaultBodyLimit::max(1024 * 1024 * 1024)) .layer(TimeoutLayer::new(Duration::from_secs(300)))