Config のデフォルトバリューを serde からひろう。

`Config::default()` からひろうと、serde の default 設定が
適用されない。
This commit is contained in:
Tokuhiro Matsuno
2023-01-28 22:59:27 +09:00
parent 3449df2810
commit e604ca8989

View File

@ -84,7 +84,9 @@ impl Config {
configfile.to_string_lossy(),
err
);
return Ok(Config::default());
let config: Config = serde_yaml::from_str("").unwrap();
info!("Loaded default configuration: {:?}", config);
return Ok(config);
}
};
info!(