Commit
Message
Changed Files (1)
-
modified src/config.rs
diff --git a/src/config.rs b/src/config.rs index 62c5aa8..ec8b7aa 100644 --- a/src/config.rs +++ b/src/config.rs @@ -158,7 +158,7 @@ impl SearchEngine for EngineConfig { /// let engines = cfg.engines.clone(); /// println!("{} engines enabled", engines.len()); /// ``` -#[derive(Debug, Deserialize)] +#[derive(Debug, Default, Deserialize)] pub struct Config { /// Custom tag definitions. If non-empty, these replace the hardcoded defaults. #[serde(default)] @@ -240,24 +240,7 @@ impl Config { } } -impl Default for Config { - fn default() -> Self { - Config { - tags: Vec::new(), - tagging_enabled: None, - tagging_threshold: None, - exclude_urls: None, - engines: Vec::new(), - db_path: None, - bind_address: None, - page_size: None, - workers: None, - onnx_model: None, - truncation: None, - max_tags: None, - } - } -} + /// Return the expected config file path (e.g. `~/.config/search_hub/config.toml` on Linux). ///