mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-10 05:01:31 +11:00
On Wayland, fix nightly warnings
The new analysis suggests that we can remove mut.
This commit is contained in:
parent
f980ed7b83
commit
9938327066
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue