From f980ed7b83a81508bb6570232c37828c7ef9e9b5 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 3 May 2023 22:20:29 +0300 Subject: [PATCH] On X11, fix nightly warnings The new analysis suggests that we can remove mut. --- src/platform_impl/linux/x11/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/linux/x11/window.rs b/src/platform_impl/linux/x11/window.rs index a600eca0..c96300a5 100644 --- a/src/platform_impl/linux/x11/window.rs +++ b/src/platform_impl/linux/x11/window.rs @@ -384,7 +384,7 @@ impl UnownedWindow { } } - let mut shared_state = window.shared_state.get_mut().unwrap(); + let shared_state = window.shared_state.get_mut().unwrap(); shared_state.min_inner_size = min_inner_size.map(Into::into); shared_state.max_inner_size = max_inner_size.map(Into::into); shared_state.resize_increments = window_attrs.resize_increments;