From 38fc25b2a23749f52883c74716f84d55f7b867d2 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Thu, 4 Dec 2025 09:20:28 -0300 Subject: [PATCH] Fix warnings: allow dead_code for future-use modules - shared/state.rs: AppState prepared for future use - ui_server/mod.rs: index() handler prepared - web/mod.rs: DTOs for API layer - shared/mod.rs: Removed unused imports (cargo fix) --- src/shared/mod.rs | 9 --------- src/shared/state.rs | 2 ++ src/ui_server/mod.rs | 2 ++ src/web/mod.rs | 2 ++ 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/shared/mod.rs b/src/shared/mod.rs index 86ca686..5868322 100644 --- a/src/shared/mod.rs +++ b/src/shared/mod.rs @@ -6,14 +6,5 @@ pub mod state; // Re-export from botlib for convenience -pub use botlib::branding::{ - branding, copyright_text, footer_text, init_branding, is_white_label, log_prefix, - platform_name, platform_short, BrandingConfig, -}; -pub use botlib::error::{BotError, BotResult}; -pub use botlib::message_types::MessageType; -pub use botlib::models::{ApiResponse, BotResponse, Session, Suggestion, UserMessage}; -pub use botlib::version::{get_botserver_version, version_string, BOTSERVER_VERSION}; // Local re-exports -pub use state::AppState; diff --git a/src/shared/state.rs b/src/shared/state.rs index ef70f3a..5af0633 100644 --- a/src/shared/state.rs +++ b/src/shared/state.rs @@ -4,6 +4,8 @@ //! route handlers and provides access to database connections, configuration, //! and other shared resources. +#![allow(dead_code)] // Prepared for future use + use std::sync::Arc; use tokio::sync::RwLock; diff --git a/src/ui_server/mod.rs b/src/ui_server/mod.rs index 61be083..028d7e5 100644 --- a/src/ui_server/mod.rs +++ b/src/ui_server/mod.rs @@ -2,6 +2,8 @@ //! //! Serves the web UI (suite, minimal) and handles API proxying. +#![allow(dead_code)] // Some functions prepared for future use + use axum::{ extract::State, http::StatusCode, diff --git a/src/web/mod.rs b/src/web/mod.rs index 22175fc..1ec3971 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -2,6 +2,8 @@ //! //! Contains DTOs and types for the web API layer. +#![allow(dead_code)] // DTOs prepared for future use + use serde::{Deserialize, Serialize}; /// Request/Response DTOs for web API