From 30678cbcef16744e9a1f5b7ae88340f723e01c98 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 4 May 2023 00:43:38 +0300 Subject: [PATCH] On Wayland, fix nightly warnings The new analysis suggests that we can remove mut. --- src/platform_impl/linux/wayland/window/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform_impl/linux/wayland/window/mod.rs b/src/platform_impl/linux/wayland/window/mod.rs index 14c317889a..e17f3402ae 100644 --- a/src/platform_impl/linux/wayland/window/mod.rs +++ b/src/platform_impl/linux/wayland/window/mod.rs @@ -170,12 +170,12 @@ impl Window { use sctk::window::{Event, State}; let winit_state = dispatch_data.get::().unwrap(); - let mut window_compositor_update = winit_state + let window_compositor_update = winit_state .window_compositor_updates .get_mut(&window_id) .unwrap(); - let mut window_user_requests = winit_state + let window_user_requests = winit_state .window_user_requests .get_mut(&window_id) .unwrap();