@@ -144,9 +144,7 @@ mod tests {
144144
145145 use crate :: {
146146 routes:: {
147- grouping:: {
148- configure, get_groupings:: GetGroupingsResponse , test_helpers:: * ,
149- } ,
147+ grouping:: { configure, get_groupings:: GetGroupingsResponse , test_helpers:: * } ,
150148 user:: tests:: TestUser ,
151149 } ,
152150 tests:: configure as test_configure,
@@ -164,9 +162,7 @@ mod tests {
164162 // Create a grouping
165163 let grouping = create_test_grouping ( & token, "Test Group" ) . await ;
166164
167- let app = App :: new ( )
168- . configure ( test_configure)
169- . configure ( configure) ;
165+ let app = App :: new ( ) . configure ( test_configure) . configure ( configure) ;
170166 let app = test:: init_service ( app) . await ;
171167
172168 let body = AddDeviceToGroupingSchema {
@@ -205,9 +201,7 @@ mod tests {
205201 let charger = user. add_charger ( charger_id) . await ;
206202 let grouping = create_test_grouping ( & token, "Test Group" ) . await ;
207203
208- let app = App :: new ( )
209- . configure ( test_configure)
210- . configure ( configure) ;
204+ let app = App :: new ( ) . configure ( test_configure) . configure ( configure) ;
211205 let app = test:: init_service ( app) . await ;
212206
213207 let body = AddDeviceToGroupingSchema {
@@ -252,9 +246,7 @@ mod tests {
252246 // User 2 creates a grouping
253247 let grouping = create_test_grouping ( & token2, "User2 Group" ) . await ;
254248
255- let app = App :: new ( )
256- . configure ( test_configure)
257- . configure ( configure) ;
249+ let app = App :: new ( ) . configure ( test_configure) . configure ( configure) ;
258250 let app = test:: init_service ( app) . await ;
259251
260252 // User 2 tries to add User 1's charger to their grouping
@@ -291,9 +283,7 @@ mod tests {
291283 // Create grouping
292284 let grouping = create_test_grouping ( & token, "Multi-Device Group" ) . await ;
293285
294- let app = App :: new ( )
295- . configure ( test_configure)
296- . configure ( configure) ;
286+ let app = App :: new ( ) . configure ( test_configure) . configure ( configure) ;
297287 let app = test:: init_service ( app) . await ;
298288
299289 // Add both devices to grouping
@@ -348,9 +338,7 @@ mod tests {
348338 let charger = user. add_charger ( charger_id) . await ;
349339 let grouping = create_test_grouping ( & token, "Cascade Test" ) . await ;
350340
351- let app = App :: new ( )
352- . configure ( test_configure)
353- . configure ( configure) ;
341+ let app = App :: new ( ) . configure ( test_configure) . configure ( configure) ;
354342 let app = test:: init_service ( app) . await ;
355343
356344 // Add device to grouping
0 commit comments