Skip to content

Commit 09bdc66

Browse files
authored
Fix windows paths (#178)
1 parent cf73545 commit 09bdc66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cfn-validate/tests/parser_conformance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn collect_json(dir: &std::path::Path, root: &std::path::Path, out: &mut Vec<Str
5555
} else if path.extension().and_then(|s| s.to_str()) == Some("json")
5656
&& let Ok(rel) = path.strip_prefix(root)
5757
{
58-
out.push(rel.to_string_lossy().to_string());
58+
out.push(rel.to_string_lossy().replace('\\', "/"));
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)