@@ -24,7 +24,7 @@ impl Default for AppBuilder {
2424 app_builder
2525 . add_default_stages ( )
2626 . add_event :: < AppExit > ( )
27- . add_system_to_stage ( stage:: LAST , clear_trackers_system) ;
27+ . add_system_to_stage ( stage:: LAST , clear_trackers_system. system ( ) ) ;
2828 app_builder
2929 }
3030}
@@ -125,68 +125,48 @@ impl AppBuilder {
125125 self
126126 }
127127
128- pub fn add_system < S , Params , IntoS > ( & mut self , system : IntoS ) -> & mut Self
129- where
130- S : System < In = ( ) , Out = ( ) > ,
131- IntoS : IntoSystem < Params , S > ,
132- {
128+ pub fn add_system < S : System < In = ( ) , Out = ( ) > > ( & mut self , system : S ) -> & mut Self {
133129 self . add_system_to_stage ( stage:: UPDATE , system)
134130 }
135131
136- pub fn on_state_enter < T : Clone + Resource , S , Params , IntoS > (
132+ pub fn on_state_enter < T : Clone + Resource , S : System < In = ( ) , Out = ( ) > > (
137133 & mut self ,
138134 stage : & str ,
139135 state : T ,
140- system : IntoS ,
141- ) -> & mut Self
142- where
143- S : System < In = ( ) , Out = ( ) > ,
144- IntoS : IntoSystem < Params , S > ,
145- {
136+ system : S ,
137+ ) -> & mut Self {
146138 self . stage ( stage, |stage : & mut StateStage < T > | {
147139 stage. on_state_enter ( state, system)
148140 } )
149141 }
150142
151- pub fn on_state_update < T : Clone + Resource , S , Params , IntoS > (
143+ pub fn on_state_update < T : Clone + Resource , S : System < In = ( ) , Out = ( ) > > (
152144 & mut self ,
153145 stage : & str ,
154146 state : T ,
155- system : IntoS ,
156- ) -> & mut Self
157- where
158- S : System < In = ( ) , Out = ( ) > ,
159- IntoS : IntoSystem < Params , S > ,
160- {
147+ system : S ,
148+ ) -> & mut Self {
161149 self . stage ( stage, |stage : & mut StateStage < T > | {
162150 stage. on_state_update ( state, system)
163151 } )
164152 }
165153
166- pub fn on_state_exit < T : Clone + Resource , S , Params , IntoS > (
154+ pub fn on_state_exit < T : Clone + Resource , S : System < In = ( ) , Out = ( ) > > (
167155 & mut self ,
168156 stage : & str ,
169157 state : T ,
170- system : IntoS ,
171- ) -> & mut Self
172- where
173- S : System < In = ( ) , Out = ( ) > ,
174- IntoS : IntoSystem < Params , S > ,
175- {
158+ system : S ,
159+ ) -> & mut Self {
176160 self . stage ( stage, |stage : & mut StateStage < T > | {
177161 stage. on_state_exit ( state, system)
178162 } )
179163 }
180164
181- pub fn add_startup_system_to_stage < S , Params , IntoS > (
165+ pub fn add_startup_system_to_stage < S : System < In = ( ) , Out = ( ) > > (
182166 & mut self ,
183167 stage_name : & ' static str ,
184- system : IntoS ,
185- ) -> & mut Self
186- where
187- S : System < In = ( ) , Out = ( ) > ,
188- IntoS : IntoSystem < Params , S > ,
189- {
168+ system : S ,
169+ ) -> & mut Self {
190170 self . app
191171 . schedule
192172 . stage ( stage:: STARTUP , |schedule : & mut Schedule | {
@@ -195,11 +175,7 @@ impl AppBuilder {
195175 self
196176 }
197177
198- pub fn add_startup_system < S , Params , IntoS > ( & mut self , system : IntoS ) -> & mut Self
199- where
200- S : System < In = ( ) , Out = ( ) > ,
201- IntoS : IntoSystem < Params , S > ,
202- {
178+ pub fn add_startup_system < S : System < In = ( ) , Out = ( ) > > ( & mut self , system : S ) -> & mut Self {
203179 self . add_startup_system_to_stage ( startup_stage:: STARTUP , system)
204180 }
205181
@@ -221,15 +197,11 @@ impl AppBuilder {
221197 . add_stage ( stage:: LAST , SystemStage :: parallel ( ) )
222198 }
223199
224- pub fn add_system_to_stage < S , Params , IntoS > (
200+ pub fn add_system_to_stage < S : System < In = ( ) , Out = ( ) > > (
225201 & mut self ,
226202 stage_name : & ' static str ,
227- system : IntoS ,
228- ) -> & mut Self
229- where
230- S : System < In = ( ) , Out = ( ) > ,
231- IntoS : IntoSystem < Params , S > ,
232- {
203+ system : S ,
204+ ) -> & mut Self {
233205 self . app . schedule . add_system_to_stage ( stage_name, system) ;
234206 self
235207 }
@@ -239,7 +211,7 @@ impl AppBuilder {
239211 T : Send + Sync + ' static ,
240212 {
241213 self . add_resource ( Events :: < T > :: default ( ) )
242- . add_system_to_stage ( stage:: EVENT , Events :: < T > :: update_system)
214+ . add_system_to_stage ( stage:: EVENT , Events :: < T > :: update_system. system ( ) )
243215 }
244216
245217 /// Adds a resource to the current [App] and overwrites any resource previously added of the same type.
0 commit comments