From 2471745e110955be49310afe11e24719ab79b658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Tue, 6 Aug 2024 15:58:35 +0300 Subject: [PATCH] fix(config): allow using environment variables without config file present (#783) --- git-cliff-core/src/embed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cliff-core/src/embed.rs b/git-cliff-core/src/embed.rs index c4b1827..0cf2d29 100644 --- a/git-cliff-core/src/embed.rs +++ b/git-cliff-core/src/embed.rs @@ -30,7 +30,7 @@ impl EmbeddedConfig { /// /// [`Config`]: Config pub fn parse() -> Result { - Ok(toml::from_str(&Self::get_config()?)?) + Config::parse_from_str(&Self::get_config()?) } }