Skip to content

Commit

Permalink
chore: fix compiler warnings about dead code (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain authored Jul 6, 2024
1 parent 7b9d07b commit 507de30
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/data_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TypeDogmaAttribute>,
pub dogmaEffects: Vec<TypeDogmaEffect>,
}

#[allow(non_snake_case)]
#[derive(Deserialize, Debug)]
pub struct DogmaAttribute {
Expand Down Expand Up @@ -78,7 +71,7 @@ pub struct DogmaEffectModifierInfo {
pub skillTypeID: Option<i32>,
}

#[allow(non_snake_case)]
#[allow(non_snake_case, dead_code)]
#[derive(Deserialize, Debug)]
pub struct DogmaEffect {
pub dischargeAttributeID: Option<i32>,
Expand Down

0 comments on commit 507de30

Please sign in to comment.