refactor: replace scootaloo_config with &str in init_db()

This commit is contained in:
VC
2022-04-24 10:02:45 +02:00
parent 13bb6d6f37
commit 26491f146f
3 changed files with 58 additions and 51 deletions

View File

@@ -54,7 +54,7 @@ fn main() {
},
("init", Some(sub_m)) => {
let config = parse_toml(sub_m.value_of("config").unwrap_or(DEFAULT_CONFIG_PATH));
init_db(&config.scootaloo).unwrap();
init_db(&config.scootaloo.db_path).unwrap();
return;
},
_ => (),