mirror of
https://github.com/mii443/akaza.git
synced 2025-08-22 14:55:31 +00:00
Config のデフォルトバリューを serde からひろう。
`Config::default()` からひろうと、serde の default 設定が 適用されない。
This commit is contained in:
@ -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!(
|
||||
|
Reference in New Issue
Block a user