From 985f7891e4240ff01c4c5d9bde5d9af2a8265f35 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 19 Dec 2022 02:17:35 -0800 Subject: [PATCH] Remove unnecessary casts in death example --- examples/death.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/death.rs b/examples/death.rs index 84014cc..6ab54a3 100644 --- a/examples/death.rs +++ b/examples/death.rs @@ -285,11 +285,9 @@ fn create_world(server: &mut Server, spawn_pos: BlockPos, world_type: Whic // Create chunks for chunk_z in -3..3 { for chunk_x in -3..3 { - world.chunks.insert( - [chunk_x as i32, chunk_z as i32], - UnloadedChunk::default(), - (), - ); + world + .chunks + .insert([chunk_x, chunk_z], UnloadedChunk::default(), ()); } }