Skip to content

Commit a6982b1

Browse files
authored
Merge pull request #2433 from davidalber/unhork-snippet-tests
Fixing path to Configurations.md
2 parents 4af4927 + b8f0adb commit a6982b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustfmt-core/tests/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ fn configuration_snippet_tests() {
792792
// entry for each Rust code block found.
793793
fn get_code_blocks() -> Vec<ConfigCodeBlock> {
794794
let mut file_iter = BufReader::new(
795-
fs::File::open(CONFIGURATIONS_FILE_NAME)
795+
fs::File::open(Path::new("..").join(CONFIGURATIONS_FILE_NAME))
796796
.expect(&format!("Couldn't read file {}", CONFIGURATIONS_FILE_NAME)),
797797
).lines()
798798
.map(|l| l.unwrap())

0 commit comments

Comments
 (0)