From dcbd690f21665e22ea250024a1aa85dec34e6c9e Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Dec 2025 11:14:40 +0930 Subject: sort derives with cargo sort-derives might add to ci later, unsure how to do it without adding significant friction for contributors though --- .../src/packets/game/c_player_info_update.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'azalea-protocol/src/packets/game/c_player_info_update.rs') diff --git a/azalea-protocol/src/packets/game/c_player_info_update.rs b/azalea-protocol/src/packets/game/c_player_info_update.rs index 64a2b5b0..4a18233e 100644 --- a/azalea-protocol/src/packets/game/c_player_info_update.rs +++ b/azalea-protocol/src/packets/game/c_player_info_update.rs @@ -12,7 +12,7 @@ use uuid::Uuid; use super::s_chat_session_update::RemoteChatSessionData; -#[derive(Clone, Debug, PartialEq, ClientboundGamePacket)] +#[derive(ClientboundGamePacket, Clone, Debug, PartialEq)] pub struct ClientboundPlayerInfoUpdate { pub actions: ActionEnumSet, pub entries: Vec, @@ -30,37 +30,37 @@ pub struct PlayerInfoEntry { pub chat_session: Option, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct AddPlayerAction { pub name: String, pub properties: GameProfileProperties, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct InitializeChatAction { pub chat_session: Option, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateGameModeAction { pub game_mode: GameMode, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateListedAction { pub listed: bool, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateLatencyAction { #[var] pub latency: i32, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateDisplayNameAction { pub display_name: Option>, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateHatAction { pub update_hat: bool, } -#[derive(Clone, Debug, AzBuf)] +#[derive(AzBuf, Clone, Debug)] pub struct UpdateListOrderAction { #[var] pub list_order: i32, @@ -169,7 +169,7 @@ impl AzaleaWrite for ClientboundPlayerInfoUpdate { } } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct ActionEnumSet { pub add_player: bool, pub initialize_chat: bool, -- cgit v1.2.3