Skip to content

Commit

Permalink
Fix clippy::unnecessary_map_or lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 28, 2024
1 parent c1ef637 commit d256add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masonry/src/widget/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ pub(crate) fn get_child_at_pos<'c>(
let relative_pos = pos - ctx.window_origin().to_vec2();
if !ctx
.clip_path()
.map_or(true, |clip| clip.contains(relative_pos))
.is_none_or(|clip| clip.contains(relative_pos))
{
return None;
}
Expand Down

0 comments on commit d256add

Please sign in to comment.