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:
parent
09356bb28e
commit
38fc25b2a2
4 changed files with 6 additions and 9 deletions
|
|
@ -6,14 +6,5 @@
|
||||||
pub mod state;
|
pub mod state;
|
||||||
|
|
||||||
// Re-export from botlib for convenience
|
// 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
|
// Local re-exports
|
||||||
pub use state::AppState;
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
//! route handlers and provides access to database connections, configuration,
|
//! route handlers and provides access to database connections, configuration,
|
||||||
//! and other shared resources.
|
//! and other shared resources.
|
||||||
|
|
||||||
|
#![allow(dead_code)] // Prepared for future use
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
//!
|
//!
|
||||||
//! Serves the web UI (suite, minimal) and handles API proxying.
|
//! Serves the web UI (suite, minimal) and handles API proxying.
|
||||||
|
|
||||||
|
#![allow(dead_code)] // Some functions prepared for future use
|
||||||
|
|
||||||
use axum::{
|
use axum::{
|
||||||
extract::State,
|
extract::State,
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
//!
|
//!
|
||||||
//! Contains DTOs and types for the web API layer.
|
//! Contains DTOs and types for the web API layer.
|
||||||
|
|
||||||
|
#![allow(dead_code)] // DTOs prepared for future use
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// Request/Response DTOs for web API
|
/// Request/Response DTOs for web API
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue