Fix conflicting Debug impl on bitfield structs

This commit is contained in:
Ryan 2022-12-09 17:02:37 -08:00
parent 842ddb4127
commit b61bdbb71d
2 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ approx = "0.5.1"
arrayvec = "0.7.2" arrayvec = "0.7.2"
async-trait = "0.1.57" async-trait = "0.1.57"
base64 = "0.13.0" base64 = "0.13.0"
bitfield-struct = "0.1.7" bitfield-struct = "0.1.8"
bytes = "1.2.1" bytes = "1.2.1"
flume = "0.10.14" flume = "0.10.14"
futures = "0.3.24" futures = "0.3.24"

View file

@ -215,7 +215,7 @@ pub enum BossBarDivision {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct BossBarFlags { pub struct BossBarFlags {
pub darken_sky: bool, pub darken_sky: bool,
pub dragon_bar: bool, pub dragon_bar: bool,
@ -311,7 +311,7 @@ pub struct PlayerInfoAddPlayer<'a> {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct DisplayedSkinParts { pub struct DisplayedSkinParts {
pub cape: bool, pub cape: bool,
pub jacket: bool, pub jacket: bool,
@ -324,7 +324,7 @@ pub struct DisplayedSkinParts {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct PlayerInputFlags { pub struct PlayerInputFlags {
pub jump: bool, pub jump: bool,
pub unmount: bool, pub unmount: bool,
@ -333,7 +333,7 @@ pub struct PlayerInputFlags {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct CommandBlockFlags { pub struct CommandBlockFlags {
pub track_output: bool, pub track_output: bool,
pub conditional: bool, pub conditional: bool,
@ -343,7 +343,7 @@ pub struct CommandBlockFlags {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct StructureBlockFlags { pub struct StructureBlockFlags {
pub ignore_entities: bool, pub ignore_entities: bool,
pub show_air: bool, pub show_air: bool,
@ -353,7 +353,7 @@ pub struct StructureBlockFlags {
} }
#[bitfield(u8)] #[bitfield(u8)]
#[derive(PartialEq, Eq, Debug, Encode, Decode)] #[derive(PartialEq, Eq, Encode, Decode)]
pub struct SyncPlayerPosLookFlags { pub struct SyncPlayerPosLookFlags {
pub x: bool, pub x: bool,
pub y: bool, pub y: bool,