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 --- azalea-protocol/src/packets/game/c_commands.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'azalea-protocol/src/packets/game/c_commands.rs') diff --git a/azalea-protocol/src/packets/game/c_commands.rs b/azalea-protocol/src/packets/game/c_commands.rs index 758c8f27..f8d95ac9 100644 --- a/azalea-protocol/src/packets/game/c_commands.rs +++ b/azalea-protocol/src/packets/game/c_commands.rs @@ -6,14 +6,14 @@ use azalea_protocol_macros::ClientboundGamePacket; use azalea_registry::identifier::Identifier; use tracing::warn; -#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)] +#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)] pub struct ClientboundCommands { pub entries: Vec, #[var] pub root_index: u32, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct BrigadierNodeStub { pub is_executable: bool, pub children: Vec, @@ -22,7 +22,7 @@ pub struct BrigadierNodeStub { pub is_restricted: bool, } -#[derive(Debug, Clone, Eq)] +#[derive(Clone, Debug, Eq)] pub struct BrigadierNumber { pub min: Option, pub max: Option, @@ -82,7 +82,7 @@ impl AzaleaWrite for BrigadierNumber { } } -#[derive(Debug, Clone, Copy, AzBuf, PartialEq, Eq)] +#[derive(AzBuf, Clone, Copy, Debug, Eq, PartialEq)] pub enum BrigadierString { /// Reads a single word SingleWord = 0, @@ -94,7 +94,7 @@ pub enum BrigadierString { } // see ArgumentTypeInfos.java -#[derive(Debug, Clone, PartialEq, AzBuf)] +#[derive(AzBuf, Clone, Debug, PartialEq)] pub enum BrigadierParser { Bool, Float(BrigadierNumber), @@ -155,7 +155,7 @@ pub enum BrigadierParser { Uuid, } -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct EntityParser { pub single: bool, pub players_only: bool, @@ -310,7 +310,7 @@ impl AzaleaWrite for BrigadierNodeStub { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum NodeType { Root, Literal { -- cgit v1.2.3