@@ -54,7 +54,7 @@ fn main() {
5454 * Stepping::continue_frame() is called
5555 * System has been configured to always run"#
5656 ) ;
57- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
57+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
5858 stepping. add_schedule ( Update ) . enable ( ) ;
5959 app. update ( ) ;
6060
@@ -65,7 +65,7 @@ fn main() {
6565 Stepping, step means run the next system across all the schedules
6666 that have been added to the Stepping resource."#
6767 ) ;
68- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
68+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
6969 stepping. step_frame ( ) ;
7070 app. update ( ) ;
7171
@@ -89,7 +89,7 @@ fn main() {
8989 case, we previously performed a step, running one system in Update.
9090 This continue will cause all remaining systems in Update to run."#
9191 ) ;
92- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
92+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
9393 stepping. continue_frame ( ) ;
9494 app. update ( ) ;
9595
@@ -102,7 +102,7 @@ fn main() {
102102 systems."#
103103 ) ;
104104 for _ in 0 ..4 {
105- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
105+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
106106 stepping. step_frame ( ) ;
107107 app. update ( ) ;
108108 }
@@ -116,10 +116,10 @@ fn main() {
116116 execute all systems in the frame. Stepping::always_run() allows
117117 us to granularly allow systems to run when stepping is enabled."#
118118 ) ;
119- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
119+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
120120 stepping. always_run ( Update , update_system_two) ;
121121 for _ in 0 ..3 {
122- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
122+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
123123 stepping. step_frame ( ) ;
124124 app. update ( ) ;
125125 }
@@ -132,7 +132,7 @@ fn main() {
132132 Stepping::never_run() allows us to disable systems while Stepping
133133 is enabled."#
134134 ) ;
135- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
135+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
136136 stepping. never_run ( Update , update_system_two) ;
137137 stepping. continue_frame ( ) ;
138138 app. update ( ) ;
@@ -155,14 +155,14 @@ fn main() {
155155 During the final continue pre_update_system() and
156156 update_system_three() run."#
157157 ) ;
158- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
158+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
159159 stepping. set_breakpoint ( Update , update_system_two) ;
160160 stepping. continue_frame ( ) ;
161161 app. update ( ) ;
162- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
162+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
163163 stepping. step_frame ( ) ;
164164 app. update ( ) ;
165- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
165+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
166166 stepping. continue_frame ( ) ;
167167 app. update ( ) ;
168168
@@ -172,7 +172,7 @@ fn main() {
172172 through all systems
173173 Result: All systems will run"#
174174 ) ;
175- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
175+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
176176 stepping. clear_breakpoint ( Update , update_system_two) ;
177177 stepping. continue_frame ( ) ;
178178 app. update ( ) ;
@@ -184,7 +184,7 @@ fn main() {
184184 call Stepping::step_frame() or Stepping::continue_frame() to run
185185 systems in the Update schedule."#
186186 ) ;
187- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
187+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
188188 stepping. disable ( ) ;
189189 app. update ( ) ;
190190}
0 commit comments