Skip to content

Commit

Permalink
Merge pull request #926 from LaurentMazare/clippy-1.84
Browse files Browse the repository at this point in the history
Fixes for clippy 1.84.
  • Loading branch information
LaurentMazare authored Jan 10, 2025
2 parents c6dfda9 + 76dbbf4 commit 72f4eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vision/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn visit_dirs(dir: &Path, files: &mut Vec<std::fs::DirEntry>) -> Result<(), TchE
} else if entry
.file_name()
.to_str()
.map_or(false, |s| s.ends_with(".png") || s.ends_with(".jpg"))
.is_some_and(|s| s.ends_with(".png") || s.ends_with(".jpg"))
{
files.push(entry);
}
Expand Down

0 comments on commit 72f4eb5

Please sign in to comment.