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-world/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-world/src')
| -rw-r--r-- | azalea-world/src/chunk_storage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
