Skip to content

Commit

Permalink
Fix error with a .config file (mitsuhiko#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorLaborieWefox committed Nov 30, 2023
1 parent 7b85f72 commit e77f4a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/env.rs
Expand Up @@ -132,6 +132,9 @@ impl ToolConfig {
let mut cfg = None;
for choice in &[".config/insta.yaml", "insta.yaml", ".insta.yaml"] {
let path = workspace_dir.join(choice);
if !path.exists() {
continue;
}
match fs::read_to_string(path) {
Ok(s) => {
cfg = Some(yaml::parse_str(&s).map_err(Error::Deserialize)?);
Expand Down

0 comments on commit e77f4a0

Please sign in to comment.