mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
On X11, fix nightly warnings
The new analysis suggests that we can remove mut.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user