Skip to content

Commit

Permalink
html-ref: fix redundant map_or lints
Browse files Browse the repository at this point in the history
  • Loading branch information
hellux committed Jan 9, 2025
1 parent 7e008d5 commit 6b894fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/html-ref/build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fn main() {
let has_dj = std::fs::read_dir(".").unwrap().any(|e| {
e.map_or(false, |e| {
e.is_ok_and(|e| {
e.path()
.extension()
.map_or(false, |ext| ext.to_str() == Some("dj"))
.is_some_and(|ext| ext.to_str() == Some("dj"))
})
});
if has_dj {
Expand Down

0 comments on commit 6b894fe

Please sign in to comment.