core/common: remove Clone from ProcessedChunk/ProcessedRegion

These can be rather large, and there is no reason to ever clone them.
This commit is contained in:
Matthias Schiffer 2023-11-25 21:47:17 +01:00
parent 74a4fc93d0
commit 4574c06f5d
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -53,7 +53,7 @@ impl TileCoordMap {
} }
/// Data structure for storing chunk data between processing and rendering steps /// Data structure for storing chunk data between processing and rendering steps
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
pub struct ProcessedChunk { pub struct ProcessedChunk {
/// Block type data /// Block type data
pub blocks: Box<layer::BlockArray>, pub blocks: Box<layer::BlockArray>,
@ -64,7 +64,7 @@ pub struct ProcessedChunk {
} }
/// Data structure for storing region data between processing and rendering steps /// 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 { pub struct ProcessedRegion {
/// List of biomes used in the region /// List of biomes used in the region
/// ///