Only read rust test files
This commit is contained in:
parent
9d104a0cbf
commit
87c284c9bc
1 changed files with 3 additions and 1 deletions
|
|
@ -928,7 +928,9 @@ where
|
|||
}
|
||||
fn file_handling(file: &Path) -> Result<(), String> {
|
||||
let path_str = file.display().to_string().replace("\\", "/");
|
||||
if should_not_remove_test(&path_str) {
|
||||
if !path_str.ends_with(".rs") {
|
||||
return Ok(())
|
||||
} else if should_not_remove_test(&path_str) {
|
||||
return Ok(());
|
||||
} else if should_remove_test(file, &path_str) {
|
||||
return std::fs::remove_file(file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue