File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -519,20 +519,12 @@ pub fn winit_runner_with(mut app: App) {
519
519
. map_or ( ControlFlow :: Poll , |config| config. control_flow ) ;
520
520
* control_flow = config_control_flow;
521
521
if let Some ( app_redraw_events) = app. world . get_resource :: < Events < RequestRedraw > > ( ) {
522
- if redraw_event_reader
523
- . iter ( & app_redraw_events)
524
- . last ( )
525
- . is_some ( )
526
- {
522
+ if redraw_event_reader. iter ( app_redraw_events) . last ( ) . is_some ( ) {
527
523
* control_flow = ControlFlow :: Poll ;
528
524
}
529
525
}
530
526
if let Some ( app_exit_events) = app. world . get_resource :: < Events < AppExit > > ( ) {
531
- if app_exit_event_reader
532
- . iter ( & app_exit_events)
533
- . next_back ( )
534
- . is_some ( )
535
- {
527
+ if app_exit_event_reader. iter ( app_exit_events) . last ( ) . is_some ( ) {
536
528
* control_flow = ControlFlow :: Exit ;
537
529
}
538
530
}
You can’t perform that action at this time.
0 commit comments