Skip to content

Commit

Permalink
fix: loading configuration files (#247)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Aparaxium authored Jan 10, 2024
1 parent 3f29307 commit 4b86b48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub fn find_config_file(path: PathBuf) -> Option<PathBuf> {
if path.exists() {
return Some(path);
}
path.pop();
}

None
Expand Down

0 comments on commit 4b86b48

Please sign in to comment.