From 85494df5105029010124a5c1922460daba5bc770 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Sat, 26 Mar 2022 16:26:20 -0400 Subject: [PATCH] Derive Clone on Cell and World --- src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 860bf46..9e25566 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -40,7 +40,7 @@ pub struct PluginHeader<'a> { } /// Parsed [CELL records](https://en.uesp.net/wiki/Skyrim_Mod:Mod_File_Format/CELL) -#[derive(Debug, PartialEq, Serialize)] +#[derive(Debug, Clone, PartialEq, Serialize)] pub struct Cell { pub form_id: u32, pub editor_id: Option, @@ -78,7 +78,7 @@ struct DecompressedCell { } /// Parsed [WRLD records](https://en.uesp.net/wiki/Skyrim_Mod:Mod_File_Format/WRLD) -#[derive(Debug, PartialEq, Serialize)] +#[derive(Debug, Clone, PartialEq, Serialize)] pub struct World { /// Note that this `form_id` is relative to the plugin file, not what it would be in-game. /// The first byte of the `form_id` can be interpreted as an index into the `masters` array of the [`PluginHeader`].