]> git.lizzy.rs Git - rust.git/blobdiff - tests/missing-test-files.rs
Remove `debug_assert` from `panic_in_result_fn`
[rust.git] / tests / missing-test-files.rs
index a26f43d0eff9fdcd019ad62545175acb41c34f95..9cef7438d225cbc51cdedd1b471ece46bbb89e78 100644 (file)
@@ -9,14 +9,12 @@ fn test_missing_tests() {
     if !missing_files.is_empty() {
         assert!(
             false,
-            format!(
-                "Didn't see a test file for the following files:\n\n{}\n",
-                missing_files
-                    .iter()
-                    .map(|s| format!("\t{}", s))
-                    .collect::<Vec<_>>()
-                    .join("\n")
-            )
+            "Didn't see a test file for the following files:\n\n{}\n",
+            missing_files
+                .iter()
+                .map(|s| format!("\t{}", s))
+                .collect::<Vec<_>>()
+                .join("\n")
         );
     }
 }
@@ -46,7 +44,7 @@ fn explore_directory(dir: &Path) -> Vec<String> {
                         if file_stem != current_file {
                             missing_files.push(path.to_str().unwrap().to_string());
                         }
-                    }
+                    },
                     _ => continue,
                 };
             }