From 507de3019333009f90817289a55a3e13e55a3e60 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 6 Jul 2024 11:00:14 +0200 Subject: [PATCH] chore: fix compiler warnings about dead code (#48) --- src/data_types.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/data_types.rs b/src/data_types.rs index f05e8aa..f269f68 100644 --- a/src/data_types.rs +++ b/src/data_types.rs @@ -19,20 +19,13 @@ pub struct TypeDogmaAttribute { pub value: f64, } -#[allow(non_snake_case)] +#[allow(non_snake_case, dead_code)] #[derive(Deserialize, Debug)] pub struct TypeDogmaEffect { pub effectID: i32, pub isDefault: bool, } -#[allow(non_snake_case)] -#[derive(Deserialize, Debug)] -pub struct TypeDogma { - pub dogmaAttributes: Vec, - pub dogmaEffects: Vec, -} - #[allow(non_snake_case)] #[derive(Deserialize, Debug)] pub struct DogmaAttribute { @@ -78,7 +71,7 @@ pub struct DogmaEffectModifierInfo { pub skillTypeID: Option, } -#[allow(non_snake_case)] +#[allow(non_snake_case, dead_code)] #[derive(Deserialize, Debug)] pub struct DogmaEffect { pub dischargeAttributeID: Option,