mirror of
https://github.com/orhun/git-cliff.git
synced 2024-11-29 15:34:47 +03:00
fix(config): allow using environment variables without config file present (#783)
This commit is contained in:
parent
4b33e7e986
commit
2471745e11
@ -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()?)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user