1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-01 21:13:24 +03:00

fix(config): allow using environment variables without config file present (#783)

This commit is contained in:
Orhun Parmaksız 2024-08-06 15:58:35 +03:00 committed by GitHub
parent 4b33e7e986
commit 2471745e11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ impl EmbeddedConfig {
///
/// [`Config`]: Config
pub fn parse() -> Result<Config> {
Ok(toml::from_str(&Self::get_config()?)?)
Config::parse_from_str(&Self::get_config()?)
}
}