diff --git a/src/platform_impl/ios/app_state.rs b/src/platform_impl/ios/app_state.rs index 6a3a6126..a6f3608b 100644 --- a/src/platform_impl/ios/app_state.rs +++ b/src/platform_impl/ios/app_state.rs @@ -803,7 +803,7 @@ pub unsafe fn handle_main_events_cleared() { handle_nonuser_event(EventWrapper::StaticEvent(Event::MainEventsCleared)); let mut this = AppState::get_mut(); - let mut redraw_events: Vec> = this + let mut redraw_events: Vec = this .main_events_cleared_transition() .into_iter() .map(|window| { @@ -812,7 +812,7 @@ pub unsafe fn handle_main_events_cleared() { .collect(); if !redraw_events.is_empty() { - redraw_events.push(Event::RedrawEventsCleared); + redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared)); } drop(this);