diff options
| author | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
| commit | 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 (patch) | |
| tree | f8a2e96893036b32ab2299df49fa5b88fb5187da /azalea-physics/src | |
| parent | 7ae8bfab5095b8d6fe71f32a0b1cda8a47ccff94 (diff) | |
| download | azalea-drasl-9de6c03dfbaa08890b1ec8322a97b7097d4a9d37.tar.xz | |
use variables directly in format strings
thanks clippy we love you
Diffstat (limited to 'azalea-physics/src')
| -rw-r--r-- | azalea-physics/src/collision/shape.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-physics/src/collision/shape.rs b/azalea-physics/src/collision/shape.rs index 59a83c80..e6bc6cf7 100644 --- a/azalea-physics/src/collision/shape.rs +++ b/azalea-physics/src/collision/shape.rs @@ -19,7 +19,7 @@ pub fn box_shape( max_y: f64, max_z: f64, ) -> VoxelShape { - assert!(min_x >= 0., "min_x must be >= 0 but was {}", min_x); + assert!(min_x >= 0., "min_x must be >= 0 but was {min_x}"); assert!(min_y >= 0.); assert!(min_z >= 0.); assert!(max_x >= 0.); |
