mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-21 09:31:19 +02:00
refactor: replace scootaloo_config with &str in init_db()
This commit is contained in:
@@ -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;
|
||||
},
|
||||
_ => (),
|
||||
|
Reference in New Issue
Block a user