From 4574c06f5d14021e2315125f9fe3d3ccde737ced Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 25 Nov 2023 21:47:17 +0100 Subject: [PATCH] core/common: remove Clone from ProcessedChunk/ProcessedRegion These can be rather large, and there is no reason to ever clone them. --- src/core/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/common.rs b/src/core/common.rs index a6d9a44..471bef3 100644 --- a/src/core/common.rs +++ b/src/core/common.rs @@ -53,7 +53,7 @@ impl TileCoordMap { } /// Data structure for storing chunk data between processing and rendering steps -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct ProcessedChunk { /// Block type data pub blocks: Box, @@ -64,7 +64,7 @@ pub struct ProcessedChunk { } /// Data structure for storing region data between processing and rendering steps -#[derive(Debug, Clone, Default, Serialize, Deserialize)] +#[derive(Debug, Default, Serialize, Deserialize)] pub struct ProcessedRegion { /// List of biomes used in the region ///