@@ -263,15 +263,15 @@ impl<'a> ColliderView<'a> {
263
263
} ) ,
264
264
ColliderView :: Capsule ( c) => match c. raw . scaled ( & scale. into ( ) , num_subdivisions) {
265
265
None => {
266
- log:: error!( "Failed to apply scale {} to Capsule shape." , scale ) ;
266
+ log:: error!( "Failed to apply scale {scale } to Capsule shape." ) ;
267
267
SharedShape :: ball ( 0.0 )
268
268
}
269
269
Some ( Either :: Left ( b) ) => SharedShape :: new ( b) ,
270
270
Some ( Either :: Right ( b) ) => SharedShape :: new ( b) ,
271
271
} ,
272
272
ColliderView :: Ball ( b) => match b. raw . scaled ( & scale. into ( ) , num_subdivisions) {
273
273
None => {
274
- log:: error!( "Failed to apply scale {} to Ball shape." , scale ) ;
274
+ log:: error!( "Failed to apply scale {scale } to Ball shape." ) ;
275
275
SharedShape :: ball ( 0.0 )
276
276
}
277
277
Some ( Either :: Left ( b) ) => SharedShape :: new ( b) ,
@@ -281,7 +281,7 @@ impl<'a> ColliderView<'a> {
281
281
ColliderView :: Triangle ( t) => SharedShape :: new ( t. raw . scaled ( & scale. into ( ) ) ) ,
282
282
ColliderView :: Voxels ( cp) => match cp. raw . clone ( ) . scaled ( & scale. into ( ) ) {
283
283
None => {
284
- log:: error!( "Failed to apply scale {} to Voxels shape." , scale ) ;
284
+ log:: error!( "Failed to apply scale {scale } to Voxels shape." ) ;
285
285
SharedShape :: ball ( 0.0 )
286
286
}
287
287
Some ( scaled) => SharedShape :: new ( scaled) ,
@@ -294,7 +294,7 @@ impl<'a> ColliderView<'a> {
294
294
ColliderView :: Polyline ( p) => SharedShape :: new ( p. raw . clone ( ) . scaled ( & scale. into ( ) ) ) ,
295
295
ColliderView :: HalfSpace ( h) => match h. raw . scaled ( & scale. into ( ) ) {
296
296
None => {
297
- log:: error!( "Failed to apply scale {} to HalfSpace shape." , scale ) ;
297
+ log:: error!( "Failed to apply scale {scale } to HalfSpace shape." ) ;
298
298
SharedShape :: ball ( 0.0 )
299
299
}
300
300
Some ( scaled) => SharedShape :: new ( scaled) ,
@@ -303,7 +303,7 @@ impl<'a> ColliderView<'a> {
303
303
#[ cfg( feature = "dim2" ) ]
304
304
ColliderView :: ConvexPolygon ( cp) => match cp. raw . clone ( ) . scaled ( & scale. into ( ) ) {
305
305
None => {
306
- log:: error!( "Failed to apply scale {} to ConvexPolygon shape." , scale ) ;
306
+ log:: error!( "Failed to apply scale {scale } to ConvexPolygon shape." ) ;
307
307
SharedShape :: ball ( 0.0 )
308
308
}
309
309
Some ( scaled) => SharedShape :: new ( scaled) ,
@@ -312,10 +312,7 @@ impl<'a> ColliderView<'a> {
312
312
ColliderView :: RoundConvexPolygon ( cp) => {
313
313
match cp. raw . inner_shape . clone ( ) . scaled ( & scale. into ( ) ) {
314
314
None => {
315
- log:: error!(
316
- "Failed to apply scale {} to RoundConvexPolygon shape." ,
317
- scale
318
- ) ;
315
+ log:: error!( "Failed to apply scale {scale} to RoundConvexPolygon shape." ) ;
319
316
SharedShape :: ball ( 0.0 )
320
317
}
321
318
Some ( scaled) => SharedShape :: new ( RoundShape {
@@ -327,7 +324,7 @@ impl<'a> ColliderView<'a> {
327
324
#[ cfg( feature = "dim3" ) ]
328
325
ColliderView :: ConvexPolyhedron ( cp) => match cp. raw . clone ( ) . scaled ( & scale. into ( ) ) {
329
326
None => {
330
- log:: error!( "Failed to apply scale {} to ConvexPolyhedron shape." , scale ) ;
327
+ log:: error!( "Failed to apply scale {scale } to ConvexPolyhedron shape." ) ;
331
328
SharedShape :: ball ( 0.0 )
332
329
}
333
330
Some ( scaled) => SharedShape :: new ( scaled) ,
@@ -337,8 +334,7 @@ impl<'a> ColliderView<'a> {
337
334
match cp. raw . clone ( ) . inner_shape . scaled ( & scale. into ( ) ) {
338
335
None => {
339
336
log:: error!(
340
- "Failed to apply scale {} to RoundConvexPolyhedron shape." ,
341
- scale
337
+ "Failed to apply scale {scale} to RoundConvexPolyhedron shape."
342
338
) ;
343
339
SharedShape :: ball ( 0.0 )
344
340
}
@@ -351,7 +347,7 @@ impl<'a> ColliderView<'a> {
351
347
#[ cfg( feature = "dim3" ) ]
352
348
ColliderView :: Cylinder ( c) => match c. raw . scaled ( & scale. into ( ) , num_subdivisions) {
353
349
None => {
354
- log:: error!( "Failed to apply scale {} to Cylinder shape." , scale ) ;
350
+ log:: error!( "Failed to apply scale {scale } to Cylinder shape." ) ;
355
351
SharedShape :: ball ( 0.0 )
356
352
}
357
353
Some ( Either :: Left ( b) ) => SharedShape :: new ( b) ,
@@ -361,7 +357,7 @@ impl<'a> ColliderView<'a> {
361
357
ColliderView :: RoundCylinder ( c) => {
362
358
match c. raw . inner_shape . scaled ( & scale. into ( ) , num_subdivisions) {
363
359
None => {
364
- log:: error!( "Failed to apply scale {} to RoundCylinder shape." , scale ) ;
360
+ log:: error!( "Failed to apply scale {scale } to RoundCylinder shape." ) ;
365
361
SharedShape :: ball ( 0.0 )
366
362
}
367
363
Some ( Either :: Left ( scaled) ) => SharedShape :: new ( RoundShape {
@@ -377,7 +373,7 @@ impl<'a> ColliderView<'a> {
377
373
#[ cfg( feature = "dim3" ) ]
378
374
ColliderView :: Cone ( c) => match c. raw . scaled ( & scale. into ( ) , num_subdivisions) {
379
375
None => {
380
- log:: error!( "Failed to apply scale {} to Cone shape." , scale ) ;
376
+ log:: error!( "Failed to apply scale {scale } to Cone shape." ) ;
381
377
SharedShape :: ball ( 0.0 )
382
378
}
383
379
Some ( Either :: Left ( b) ) => SharedShape :: new ( b) ,
@@ -387,7 +383,7 @@ impl<'a> ColliderView<'a> {
387
383
ColliderView :: RoundCone ( c) => {
388
384
match c. raw . inner_shape . scaled ( & scale. into ( ) , num_subdivisions) {
389
385
None => {
390
- log:: error!( "Failed to apply scale {} to RoundCone shape." , scale ) ;
386
+ log:: error!( "Failed to apply scale {scale } to RoundCone shape." ) ;
391
387
SharedShape :: ball ( 0.0 )
392
388
}
393
389
Some ( Either :: Left ( scaled) ) => SharedShape :: new ( RoundShape {
0 commit comments