summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/missing-test-files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/missing-test-files.rs')
-rw-r--r--src/tools/clippy/tests/missing-test-files.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/clippy/tests/missing-test-files.rs b/src/tools/clippy/tests/missing-test-files.rs
index caedd5d76..0d35a22cd 100644
--- a/src/tools/clippy/tests/missing-test-files.rs
+++ b/src/tools/clippy/tests/missing-test-files.rs
@@ -41,8 +41,8 @@ fn explore_directory(dir: &Path) -> Vec<String> {
x.path().extension().and_then(OsStr::to_str),
y.path().extension().and_then(OsStr::to_str),
) {
- (Some("rs"), _) => Ordering::Less,
- (_, Some("rs")) => Ordering::Greater,
+ (Some("rs" | "toml"), _) => Ordering::Less,
+ (_, Some("rs" | "toml")) => Ordering::Greater,
_ => Ordering::Equal,
}
});
@@ -54,7 +54,7 @@ fn explore_directory(dir: &Path) -> Vec<String> {
let file_prefix = path.file_prefix().unwrap().to_str().unwrap().to_string();
if let Some(ext) = path.extension() {
match ext.to_str().unwrap() {
- "rs" => current_file = file_prefix.clone(),
+ "rs" | "toml" => current_file = file_prefix.clone(),
"stderr" | "stdout" => {
if file_prefix != current_file {
missing_files.push(path.to_str().unwrap().to_string());