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

@ -166,7 +166,7 @@ impl KeyboardHandler for WinitState {
modifiers: Modifiers,
) {
let modifiers = ModifiersState::from(modifiers);
let mut seat_state = self.seats.get_mut(&keyboard.seat().id()).unwrap();
let seat_state = self.seats.get_mut(&keyboard.seat().id()).unwrap();
seat_state.modifiers = modifiers;
// NOTE: part of the workaround from `fn enter`, see it above.

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,
};