Skip to content

Commit 9bebbf1

Browse files
committed
Use Path::file_stem instead
1 parent b493613 commit 9bebbf1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/tidy/src/tests_revision_unpaired_stdout_stderr.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ pub fn check(tests_path: impl AsRef<Path>, bad: &mut bool) {
8484
}
8585
});
8686

87-
let Some((test_name, _)) =
88-
test.file_name().map(OsStr::to_str).flatten().map(|n| n.split_once('.')).flatten()
89-
else {
87+
let Some(test_name) = test.file_stem().map(OsStr::to_str).flatten() else {
9088
continue;
9189
};
9290

0 commit comments

Comments
 (0)