From d256add3e8ef085568470c7f5916a9b201c9ba9f Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 28 Dec 2024 00:17:32 -0500 Subject: [PATCH] Fix `clippy::unnecessary_map_or` lint --- masonry/src/widget/widget.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masonry/src/widget/widget.rs b/masonry/src/widget/widget.rs index a21b93052..7767499c2 100644 --- a/masonry/src/widget/widget.rs +++ b/masonry/src/widget/widget.rs @@ -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; }