From c56208c32a96b8824a3a682582c2cf5d2eda595c Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Wed, 5 Aug 2026 14:58:50 +0200 Subject: [PATCH] fix: ci --- pumpkin-world/src/chunk_system/generation.rs | 1 + pumpkin-world/src/generation/proto_chunk.rs | 10 +++------- pumpkin-world/src/generation/proto_chunk_test.rs | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pumpkin-world/src/chunk_system/generation.rs b/pumpkin-world/src/chunk_system/generation.rs index 06db7964a..61eb0cd04 100644 --- a/pumpkin-world/src/chunk_system/generation.rs +++ b/pumpkin-world/src/chunk_system/generation.rs @@ -28,6 +28,7 @@ pub fn generate_single_chunk( ) } +#[expect(clippy::too_many_arguments)] pub fn generate_single_chunk_with_radius( _dimension: &Dimension, _biome_mixer_seed: i64, diff --git a/pumpkin-world/src/generation/proto_chunk.rs b/pumpkin-world/src/generation/proto_chunk.rs index a50e48790..0fd58804d 100644 --- a/pumpkin-world/src/generation/proto_chunk.rs +++ b/pumpkin-world/src/generation/proto_chunk.rs @@ -1319,11 +1319,8 @@ impl ProtoChunk { ) -> bool { let chunk_x = self.x; let chunk_z = self.z; - let position = global_cache.get_or_compute_structure_start( - entry.structure, - chunk_x, - chunk_z, - || { + let position = + global_cache.get_or_compute_structure_start(entry.structure, chunk_x, chunk_z, || { let structure = Structure::get(&entry.structure); try_generate_structure( &entry.structure, @@ -1333,8 +1330,7 @@ impl ProtoChunk { sea_level, Some(height_sampler), ) - }, - ); + }); if let Some(pos) = position { self.structure_starts diff --git a/pumpkin-world/src/generation/proto_chunk_test.rs b/pumpkin-world/src/generation/proto_chunk_test.rs index e576b8145..4ce718d24 100644 --- a/pumpkin-world/src/generation/proto_chunk_test.rs +++ b/pumpkin-world/src/generation/proto_chunk_test.rs @@ -159,7 +159,7 @@ mod test { test_name: &str, ) { let seed = Seed(seed); - let world_gen = get_world_gen(seed, dimension.clone(), false, Vec::new(), String::new()); + let world_gen = get_world_gen(seed, dimension, false, Vec::new(), String::new()); let mut chunk = ProtoChunk::new(chunk_x, chunk_z, &world_gen); let WorldGenerator::Noise(generator) = &*world_gen else { unreachable!()