diff --git a/src/args.rs b/src/args.rs index b1b78ce..b5e8cc0 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1,5 +1,4 @@ use std::path::PathBuf; -use std::str::FromStr; use clap::*; use anyhow::{Error, anyhow}; @@ -174,8 +173,8 @@ impl FromStr for NumberOrString { */ #[derive(Debug, Clone)] pub struct KeyValue { - pub key: String, - pub value: String, + pub(crate) key: String, + pub(crate) value: String, } impl FromStr for KeyValue { diff --git a/src/modes/server/api/status.rs b/src/modes/server/api/status.rs index 5c2ea43..8852bda 100644 --- a/src/modes/server/api/status.rs +++ b/src/modes/server/api/status.rs @@ -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}; diff --git a/src/modes/server/common.rs b/src/modes/server/common.rs index 89c65ca..0ab5fe8 100644 --- a/src/modes/server/common.rs +++ b/src/modes/server/common.rs @@ -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>, pub data_dir: PathBuf, - pub password: Option, - pub password_hash: Option, + pub(crate) password: Option, + pub(crate) password_hash: Option, } #[derive(Serialize, Deserialize, ToSchema)]