From 6ace6e8bfad81b3a28532aaaddfdeddb8c304875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 29 Sep 2023 23:38:52 +0200 Subject: [PATCH] formatting --- crates/bevy_winit/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 3aebee4c95bb8..21b694cdc2982 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -37,14 +37,14 @@ use bevy_utils::{ tracing::{trace, warn}, Duration, Instant, }; -#[cfg(target_os = "android")] -use bevy_window::PrimaryWindow; use bevy_window::{ exit_on_all_closed, CursorEntered, CursorLeft, CursorMoved, FileDragAndDrop, Ime, ReceivedCharacter, RequestRedraw, Window, WindowBackendScaleFactorChanged, WindowCloseRequested, WindowCreated, WindowDestroyed, WindowFocused, WindowMoved, WindowResized, WindowScaleFactorChanged, WindowThemeChanged, }; +#[cfg(target_os = "android")] +use bevy_window::{PrimaryWindow, RawHandleWrapper}; #[cfg(target_os = "android")] pub use winit::platform::android::activity::AndroidApp; @@ -670,9 +670,7 @@ pub fn winit_runner(mut app: App) { // This will trigger the surface destruction. let mut query = app.world.query_filtered::>(); let entity = query.single(&app.world); - app.world - .entity_mut(entity) - .remove::(); + app.world.entity_mut(entity).remove::(); *control_flow = ControlFlow::Wait; } } @@ -708,7 +706,7 @@ pub fn winit_runner(mut app: App) { &accessibility_requested, ); - let wrapper = bevy_window::RawHandleWrapper { + let wrapper = RawHandleWrapper { window_handle: winit_window.raw_window_handle(), display_handle: winit_window.raw_display_handle(), };