refactor for more generic usage of config path helpers

This commit is contained in:
Henrik Friedrichsen
2019-03-26 19:12:07 +01:00
parent 3892ac07d0
commit 2eea519e82
3 changed files with 8 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ fn main() {
// Things here may cause the process to abort; we must do them before creating curses windows
// otherwise the error message will not be seen by a user
let path = config::config_path();
let path = config::config_path("config.toml");
let cfg: config::Config = {
let contents = std::fs::read_to_string(&path).unwrap_or_else(|_| {