diff options
| author | Mica White <botahamec@outlook.com> | 2026-03-30 21:06:31 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-03-30 21:06:31 -0400 |
| commit | 6495268f002e1eeb27d13c58eec34ac4fa9b4ee6 (patch) | |
| tree | 6ee642663b614eb9b469b0a4f6771a2e88f547fc /src/bin/git-autosave-daemon.rs | |
| parent | e5692c42d3f2323cba6f10a4fc1e98b60507df51 (diff) | |
Refactor out config type
Diffstat (limited to 'src/bin/git-autosave-daemon.rs')
| -rw-r--r-- | src/bin/git-autosave-daemon.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/git-autosave-daemon.rs b/src/bin/git-autosave-daemon.rs index 39df4b8..2c27ab2 100644 --- a/src/bin/git-autosave-daemon.rs +++ b/src/bin/git-autosave-daemon.rs @@ -44,7 +44,7 @@ impl<Cache: FileIdCache + Send + 'static> DebounceEventHandler for ConfigWatcher log::error!("Failed to acquire thread key when reloading config. This is a bug!"); return; }; - let config = match git_autosave::load_config() { + let config = match Config::load() { Ok(config) => config, Err(e) => { log::error!("Failed to reload autosave config: {e}"); @@ -172,8 +172,7 @@ fn main() -> Result<(), anyhow::Error> { colog::init(); log::info!("Loading autosave config..."); - let config: &'static Mutex<Config> = - Box::leak(Box::new(Mutex::new(git_autosave::load_config()?))); + let config: &'static Mutex<Config> = Box::leak(Box::new(Mutex::new(Config::load()?))); log::info!("Loaded autosave config"); log::info!("Starting repository watcher..."); |
