From fa5ee3fa372cc28b387220dc3c2bc32a4ed14ced Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 17 Jun 2023 16:18:01 +0200 Subject: [PATCH] Fix local settings file not being optional --- src/utils/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/settings.rs b/src/utils/settings.rs index 86fe9e9..1d43134 100644 --- a/src/utils/settings.rs +++ b/src/utils/settings.rs @@ -82,7 +82,7 @@ fn load_settings() -> MultihookResult { .collect::>(), ) .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()?; let settings: Settings = settings.try_deserialize()?;