about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEzra Shaw <ezrasure@outlook.com>2023-01-02 09:20:41 +1300
committerEzra Shaw <ezrasure@outlook.com>2023-01-02 09:20:41 +1300
commitdef1b7cb9ab99565cb3dc08d88035fd9cdb3c22a (patch)
tree79b9349e07a22752b32c8686c77a8482efff1687
parent24671b7fd5daf16a39d6c9c62a457ace0b9c3ff6 (diff)
downloadrust-def1b7cb9ab99565cb3dc08d88035fd9cdb3c22a.tar.gz
rust-def1b7cb9ab99565cb3dc08d88035fd9cdb3c22a.zip
fix CI error
-rw-r--r--src/tools/tidy/src/error_codes.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/tidy/src/error_codes.rs b/src/tools/tidy/src/error_codes.rs
index 026f7d87418..4498666da1e 100644
--- a/src/tools/tidy/src/error_codes.rs
+++ b/src/tools/tidy/src/error_codes.rs
@@ -289,11 +289,12 @@ fn check_error_codes_tests(root_path: &Path, error_codes: &[String], errors: &mu
             continue;
         }
 
-        let file = match fs::read_to_string(test_path) {
+        let file = match fs::read_to_string(&test_path) {
             Ok(file) => file,
             Err(err) => {
                 println!(
-                    "WARNING: Failed to read UI test file (`{test_path}`) for `{code}` but the file exists. The test is assumed to work:\n{err}"
+                    "WARNING: Failed to read UI test file (`{}`) for `{code}` but the file exists. The test is assumed to work:\n{err}",
+                    test_path.display()
                 );
                 continue;
             }