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)
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-12-04 09:20:28 -03:00
parent 09356bb28e
commit 38fc25b2a2
4 changed files with 6 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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,

View file

@ -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