mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
On Wayland, fix nightly warnings
The new analysis suggests that we can remove mut.
This commit is contained in:
@@ -170,12 +170,12 @@ impl Window {
|
|||||||
use sctk::window::{Event, State};
|
use sctk::window::{Event, State};
|
||||||
|
|
||||||
let winit_state = dispatch_data.get::<WinitState>().unwrap();
|
let winit_state = dispatch_data.get::<WinitState>().unwrap();
|
||||||
let mut window_compositor_update = winit_state
|
let window_compositor_update = winit_state
|
||||||
.window_compositor_updates
|
.window_compositor_updates
|
||||||
.get_mut(&window_id)
|
.get_mut(&window_id)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let mut window_user_requests = winit_state
|
let window_user_requests = winit_state
|
||||||
.window_user_requests
|
.window_user_requests
|
||||||
.get_mut(&window_id)
|
.get_mut(&window_id)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user