@@ -174,7 +174,7 @@ fn main() {
174174 // Create a new session for the pause menu, which sits in the background by default and only
175175 // does anything while the game is running.
176176 game. sessions
177- . create_with ( SessionNames :: PAUSE_MENU , |builder| {
177+ . create_with ( SessionNames :: PAUSE_MENU , |builder : & mut SessionBuilder | {
178178 builder. install_plugin ( ui:: pause_menu:: session_plugin) ;
179179 } ) ;
180180
@@ -184,16 +184,19 @@ fn main() {
184184 . unwrap ( )
185185 . priority = 1 ;
186186
187- // Scoring menu plugin, activated by game between round tarnsitions when appropriate
188- game. sessions . create_with ( SessionNames :: SCORING , |builder| {
189- builder. install_plugin ( ui:: scoring:: session_plugin) ;
190- } ) ;
187+ // Scoring menu plugin, activated by game between round transitions when appropriate
188+ game. sessions
189+ . create_with ( SessionNames :: SCORING , |builder : & mut SessionBuilder | {
190+ builder. install_plugin ( ui:: scoring:: session_plugin) ;
191+ } ) ;
191192
192193 // session for pop-ups / nofication UI
193- game. sessions
194- . create_with ( SessionNames :: NOTIFICATION , |builder| {
194+ game. sessions . create_with (
195+ SessionNames :: NOTIFICATION ,
196+ |builder : & mut SessionBuilder | {
195197 builder. install_plugin ( ui:: notification:: session_plugin) ;
196- } ) ;
198+ } ,
199+ ) ;
197200
198201 // Create a bevy renderer for the bones game and run it.
199202 BonesBevyRenderer {
0 commit comments