fix: parse without glob

This commit is contained in:
kinolaev 2021-07-24 19:42:29 +03:00 committed by GitHub
commit f44953ddf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ fn parse_files(files: Vec<PathBuf>) -> Result<Config> {
} }
pub fn parse(path: impl AsRef<Path>) -> Result<Config> { pub fn parse(path: impl AsRef<Path>) -> Result<Config> {
parse_files(glob_config_files(path)) parse_files(vec![path.as_ref().into()])
} }
pub fn parse_glob(path: impl AsRef<Path>) -> Result<Config> { pub fn parse_glob(path: impl AsRef<Path>) -> Result<Config> {