From 0f631ca7494114c218da00ae61e895e2ac632e5a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 13 Mar 2025 00:05:14 -0400 Subject: [PATCH] Derive Clone in CustomizeData --- src/chardat.rs | 2 +- src/race.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chardat.rs b/src/chardat.rs index 50ac592..46f92f0 100644 --- a/src/chardat.rs +++ b/src/chardat.rs @@ -98,7 +98,7 @@ fn convert_subrace_dat(subrace: &Subrace) -> u8 { #[binrw] #[br(little)] #[repr(C)] -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct CustomizeData { /// The race of the character. #[br(map = convert_dat_race)] diff --git a/src/race.rs b/src/race.rs index 3936770..adf7f8c 100755 --- a/src/race.rs +++ b/src/race.rs @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2023 Joshua Goins // SPDX-License-Identifier: GPL-3.0-or-later -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// Gender of the character. pub enum Gender { @@ -9,7 +9,7 @@ pub enum Gender { Female, } -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// The race's "subrace". Each race has two subraces, which are actually identical (even down to the ids!) /// with the exception of Hyurs, which have two unique subraces that are really two separate races. @@ -32,7 +32,7 @@ pub enum Subrace { Veena, } -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Clone, Debug)] #[repr(u8)] /// The major races of Eorzea. pub enum Race {