On Wayland, fix nightly warnings

The new analysis suggests that we can remove mut.
This commit is contained in:
Kirill Chibisov 2023-05-03 22:20:55 +03:00
parent f980ed7b83
commit 9938327066
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ impl TouchHandler for WinitState {
let seat_state = self.seats.get_mut(&touch.seat().id()).unwrap();
// Remove the touch point.
let mut touch_point = match seat_state.touch_map.get_mut(&id) {
let touch_point = match seat_state.touch_map.get_mut(&id) {
Some(touch_point) => touch_point,
None => return,
};