From 4e81af059944a3303244871168a5c1009f7256e7 Mon Sep 17 00:00:00 2001 From: spinline Date: Sun, 8 Feb 2026 18:49:54 +0300 Subject: [PATCH] fix: unused import warning for utoipa::OpenApi in production build --- backend/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main.rs b/backend/src/main.rs index 876414a..6a3e0b4 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -32,6 +32,7 @@ use tower_http::{ cors::CorsLayer, trace::TraceLayer, }; +#[cfg(feature = "swagger")] use utoipa::OpenApi; #[cfg(feature = "swagger")] use utoipa_swagger_ui::SwaggerUi;