From 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 27 Oct 2022 21:22:47 -0500 Subject: use variables directly in format strings thanks clippy we love you --- azalea-physics/src/collision/shape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-physics/src') 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.); -- cgit v1.2.3