Skip to content

Commit bcc56ac

Browse files
Remove unnecessary mutability
Co-authored-by: Chris Russell <[email protected]>
1 parent bfa24cc commit bcc56ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_winit/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ impl<T: Event> ApplicationHandler<T> for WinitAppRunnerState<T> {
251251
) {
252252
self.window_event_received = true;
253253

254-
WINIT_WINDOWS.with_borrow_mut(|ww_ref| {
255-
let winit_windows = ww_ref.as_mut().expect("Failed to initialize winit windows");
254+
WINIT_WINDOWS.with_borrow(|ww_ref| {
255+
let winit_windows = ww_ref.as_ref().expect("Failed to initialize winit windows");
256256
ACCESS_KIT_ADAPTERS.with_borrow_mut(|aka_ref| {
257257
let access_kit_adapters = aka_ref
258258
.as_mut()

0 commit comments

Comments
 (0)