Skip to content

Commit def1b7c

Browse files
committed
fix CI error
1 parent 24671b7 commit def1b7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/tidy/src/error_codes.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,12 @@ fn check_error_codes_tests(root_path: &Path, error_codes: &[String], errors: &mu
289289
continue;
290290
}
291291

292-
let file = match fs::read_to_string(test_path) {
292+
let file = match fs::read_to_string(&test_path) {
293293
Ok(file) => file,
294294
Err(err) => {
295295
println!(
296-
"WARNING: Failed to read UI test file (`{test_path}`) for `{code}` but the file exists. The test is assumed to work:\n{err}"
296+
"WARNING: Failed to read UI test file (`{}`) for `{code}` but the file exists. The test is assumed to work:\n{err}",
297+
test_path.display()
297298
);
298299
continue;
299300
}

0 commit comments

Comments
 (0)