Use Path::file_stem instead
This commit is contained in:
parent
b4936133bb
commit
9bebbf14c5
@ -84,9 +84,7 @@ pub fn check(tests_path: impl AsRef<Path>, bad: &mut bool) {
|
||||
}
|
||||
});
|
||||
|
||||
let Some((test_name, _)) =
|
||||
test.file_name().map(OsStr::to_str).flatten().map(|n| n.split_once('.')).flatten()
|
||||
else {
|
||||
let Some(test_name) = test.file_stem().map(OsStr::to_str).flatten() else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user