Fix local settings file not being optional

main
trivernis 1 year ago
parent 5829d8ca35
commit fa5ee3fa37
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -82,7 +82,7 @@ fn load_settings() -> MultihookResult<Settings> {
.collect::<Vec<_>>(), .collect::<Vec<_>>(),
) )
.add_source(config::Environment::with_prefix("MULTIHOOK")) .add_source(config::Environment::with_prefix("MULTIHOOK"))
.add_source(File::from(PathBuf::from(".multihook.toml"))) .add_source(File::from(PathBuf::from(".multihook.toml")).required(false))
.build()?; .build()?;
let settings: Settings = settings.try_deserialize()?; let settings: Settings = settings.try_deserialize()?;

Loading…
Cancel
Save