refactor: make unused fields and functions private
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -174,8 +174,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 {
|
||||
|
||||
@@ -37,7 +37,7 @@ pub struct Settings {
|
||||
pub list_format: Vec<ColumnConfig>,
|
||||
pub human_readable: bool,
|
||||
pub output_format: Option<String>,
|
||||
pub(crate) verbose: u8,
|
||||
pub verbose: u8,
|
||||
pub quiet: bool,
|
||||
pub force: bool,
|
||||
pub server: Option<ServerConfig>,
|
||||
|
||||
@@ -28,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)]
|
||||
|
||||
Reference in New Issue
Block a user