Suppress dead_code warnings for unused fields new in Rust 1.57

This commit is contained in:
ice_iix 2021-12-24 09:17:58 -08:00
parent 6f8dcea2a5
commit 669e37ac5c
2 changed files with 6 additions and 0 deletions

View File

@ -656,6 +656,7 @@ impl Serializable for ParticleData {
}
#[derive(Debug)]
#[allow(dead_code)]
pub struct VillagerData {
villager_type: protocol::VarInt,
profession: protocol::VarInt,

View File

@ -880,7 +880,9 @@ struct RawModel {
uvlock: bool,
weight: f64,
#[allow(dead_code)]
display: HashMap<String, ModelDisplay, BuildHasherDefault<FNVHash>>,
#[allow(dead_code)]
builtin: BuiltinType,
}
@ -899,6 +901,7 @@ impl RawModel {
}
#[derive(Debug)]
#[allow(dead_code)]
struct ModelDisplay {
rotation: [f64; 3],
translation: [f64; 3],
@ -935,6 +938,7 @@ struct BlockFace {
struct Model {
faces: Vec<Face>,
ambient_occlusion: bool,
#[allow(dead_code)]
weight: f64,
}
@ -945,6 +949,7 @@ struct Face {
vertices: Vec<BlockVertex>,
vertices_texture: Vec<render::Texture>,
indices: usize,
#[allow(dead_code)]
shade: bool,
tint_index: i32,
}