Merge pull request #1 from kinolaev/patch-1

fix: parse without glob
This commit is contained in:
Robin Appelman 2021-07-30 14:37:40 +00:00 committed by GitHub
commit d13783dbc1
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> {