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-world/src/chunk_storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index 3d2cb613..5bc744c3 100644 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -158,7 +158,7 @@ impl Chunk { } pub fn section_index(&self, y: i32, min_y: i32) -> u32 { - assert!(y >= min_y, "y ({}) must be at least {}", y, min_y); + assert!(y >= min_y, "y ({y}) must be at least {min_y}"); let min_section_index = min_y.div_floor(16); (y.div_floor(16) - min_section_index) as u32 } -- cgit v1.2.3