Skip to content

Commit

Permalink
fix: remove clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr committed Apr 7, 2024
1 parent d3cb516 commit 72b5ce2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,9 @@ pub fn target_path(target_name: &str) -> std::io::Result<PathBuf> {
if let Some(cands) = target_dir_cands() {
for dir in cands {
if let Ok(iter) = read_dir(dir) {
for entry in iter {
if let Ok(entry) = entry {
if entry.file_name() == target_name {
return Ok(entry.path());
}
for entry in iter.flatten() {
if entry.file_name() == target_name {
return Ok(entry.path());
}
}
}
Expand Down

0 comments on commit 72b5ce2

Please sign in to comment.