Skip to content

Commit

Permalink
Silence bail warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 17, 2024
1 parent a3279f5 commit 3c5c681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3c5c681

Please sign in to comment.