Fix clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2022-10-04 11:53:03 +02:00
parent ce2c795bda
commit 8c74464b0d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 15 additions and 21 deletions

View file

@ -424,22 +424,19 @@ mod grid {
};
match event {
Event::Touch(touch_event) => match touch_event {
touch::Event::FingerMoved { .. } => {
let message = {
*interaction = if is_populated {
Interaction::Erasing
} else {
Interaction::Drawing
};
populate.or(unpopulate)
Event::Touch(touch::Event::FingerMoved { .. }) => {
let message = {
*interaction = if is_populated {
Interaction::Erasing
} else {
Interaction::Drawing
};
(event::Status::Captured, message)
}
_ => (event::Status::Ignored, None),
},
populate.or(unpopulate)
};
(event::Status::Captured, message)
}
Event::Mouse(mouse_event) => match mouse_event {
mouse::Event::ButtonPressed(button) => {
let message = match button {