fix: remove unused imports and make unused fields private

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-16 12:21:57 -03:00
parent 8b8868760c
commit 969d30924b
3 changed files with 4 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ use axum::{
http::StatusCode,
response::Json,
};
use std::str::FromStr;
use crate::modes::server::common::{AppState, ApiResponse, StatusInfoResponse};
use crate::common::status::{generate_status_info, StatusInfo};

View File

@@ -11,7 +11,6 @@ use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::str::FromStr;
use std::sync::Arc;
use std::time::Instant;
use tokio::sync::Mutex;
@@ -29,8 +28,8 @@ pub struct ServerConfig {
pub struct AppState {
pub db: Arc<Mutex<rusqlite::Connection>>,
pub data_dir: PathBuf,
pub password: Option<String>,
pub password_hash: Option<String>,
pub(crate) password: Option<String>,
pub(crate) password_hash: Option<String>,
}
#[derive(Serialize, Deserialize, ToSchema)]