From 3c5c681c979dc28caa0fff667d1a62a21e3fdda4 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Sat, 17 Aug 2024 16:02:19 -0700 Subject: [PATCH] Silence bail warnings --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 004b27d..fd66f2b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -130,7 +130,7 @@ fn update_tooltip_context( }; let window = c!(window_query.get(window)); cq!(window.focused); - let cursor_pos = c!(window + let cursor_pos = cq!(window .cursor_position() .and_then(|cursor| camera.viewport_to_world_2d(camera_gt, cursor))); @@ -178,7 +178,7 @@ fn update_tooltip_context( Interaction::Hovered => (), Interaction::None => continue, }; - r!(matches!(ctx.state, TooltipState::Inactive) || ctx.target != entity); + rq!(matches!(ctx.state, TooltipState::Inactive) || ctx.target != entity); // Switch to the new target entity. ctx.target = entity;