Fix clippy lints
This commit is contained in:
parent
ce2c795bda
commit
8c74464b0d
2 changed files with 15 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue