From 6495268f002e1eeb27d13c58eec34ac4fa9b4ee6 Mon Sep 17 00:00:00 2001 From: Mica White Date: Mon, 30 Mar 2026 21:06:31 -0400 Subject: Refactor out config type --- src/bin/git-autosave-daemon.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/bin/git-autosave-daemon.rs') 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 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 = - Box::leak(Box::new(Mutex::new(git_autosave::load_config()?))); + let config: &'static Mutex = Box::leak(Box::new(Mutex::new(Config::load()?))); log::info!("Loaded autosave config"); log::info!("Starting repository watcher..."); -- cgit v1.2.3