Skip to content

Commit 2471745

Browse files
authored
fix(config): allow using environment variables without config file present (#783)
1 parent 4b33e7e commit 2471745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cliff-core/src/embed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl EmbeddedConfig {
3030
///
3131
/// [`Config`]: Config
3232
pub fn parse() -> Result<Config> {
33-
Ok(toml::from_str(&Self::get_config()?)?)
33+
Config::parse_from_str(&Self::get_config()?)
3434
}
3535
}
3636

0 commit comments

Comments
 (0)