Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Remmirad authored and hecrj committed Feb 3, 2024
1 parent ce23498 commit bd13c58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widget/src/mouse_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fn update<Message: Clone, Theme, Renderer>(
| Event::Touch(touch::Event::FingerMoved { id: _, position }) = event
{
let state: &mut State = tree.state.downcast_mut();
handle_mouse_move(widget, state, shell, *position, layout.bounds())
handle_mouse_move(widget, state, shell, *position, layout.bounds());
}

if !cursor.is_over(layout.bounds()) {
Expand Down Expand Up @@ -376,15 +376,15 @@ fn handle_mouse_move<Message: Clone, Theme, Renderer>(
widget.on_mouse_exit.as_mut(),
) {
(Some(enter_msg), _, _) if mouse_in_area && !state.mouse_in_area => {
shell.publish(enter_msg.clone())
shell.publish(enter_msg.clone());
}
(_, Some(build_move_msg), _)
if mouse_in_area && state.mouse_in_area =>
{
shell.publish(build_move_msg(position))
shell.publish(build_move_msg(position));
}
(_, _, Some(exit_msg)) if !mouse_in_area && state.mouse_in_area => {
shell.publish(exit_msg.clone())
shell.publish(exit_msg.clone());
}
_ => {}
}
Expand Down

0 comments on commit bd13c58

Please sign in to comment.