From 4b86b48710ff2dd67ea1009c1c97c752b265e4c5 Mon Sep 17 00:00:00 2001 From: Aparaxium <10635434+Aparaxium@users.noreply.github.com> Date: Wed, 10 Jan 2024 11:20:05 -0800 Subject: [PATCH] fix: loading configuration files (#247) The logic for searching for the config file was incorrectly pushing paths to the PathBuf without popping, causing it to look for the wrong file paths. --- src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.rs b/src/config.rs index 6537a0f..5100192 100644 --- a/src/config.rs +++ b/src/config.rs @@ -57,6 +57,7 @@ pub fn find_config_file(path: PathBuf) -> Option { if path.exists() { return Some(path); } + path.pop(); } None