From ea4891941fffeb8d1e5441c9a9d57eaeb5bba261 Mon Sep 17 00:00:00 2001 From: NexVeridian Date: Sat, 23 Nov 2024 06:10:06 -0800 Subject: [PATCH] fix cfg flag for import --- src/controller/app_routes.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/controller/app_routes.rs b/src/controller/app_routes.rs index 3e88142d6..4520e1955 100644 --- a/src/controller/app_routes.rs +++ b/src/controller/app_routes.rs @@ -22,14 +22,16 @@ use utoipa_swagger_ui::SwaggerUi; #[cfg(feature = "channels")] use super::channels::AppChannels; use super::routes::LocoMethodRouter; -#[cfg(feature = "openapi")] -use crate::controller::{format, Response}; use crate::{ app::{AppContext, Hooks}, - config::OpenAPIType, controller::{middleware::MiddlewareLayer, routes::Routes}, Result, }; +#[cfg(feature = "openapi")] +use crate::{ + config::OpenAPIType, + controller::{format, Response}, +}; static NORMALIZE_URL: OnceLock = OnceLock::new();