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/s_container_click.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src/packets/game/s_container_click.rs') diff --git a/azalea-protocol/src/packets/game/s_container_click.rs b/azalea-protocol/src/packets/game/s_container_click.rs index bfce320e..423af5cb 100644 --- a/azalea-protocol/src/packets/game/s_container_click.rs +++ b/azalea-protocol/src/packets/game/s_container_click.rs @@ -5,7 +5,7 @@ use azalea_protocol_macros::ServerboundGamePacket; use azalea_registry::builtin::{DataComponentKind, ItemKind}; use indexmap::IndexMap; -#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundGamePacket)] +#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundGamePacket)] pub struct ServerboundContainerClick { #[var] pub container_id: i32, @@ -20,10 +20,10 @@ pub struct ServerboundContainerClick { /// Similar to an [`ItemStack`] but only carrying a CRC32 hash of the value of /// added data components instead of their entire contents. -#[derive(Clone, Debug, AzBuf, PartialEq)] +#[derive(AzBuf, Clone, Debug, PartialEq)] pub struct HashedStack(pub Option); -#[derive(Clone, Debug, AzBuf, PartialEq)] +#[derive(AzBuf, Clone, Debug, PartialEq)] pub struct HashedActualItem { pub kind: ItemKind, #[var] @@ -31,7 +31,7 @@ pub struct HashedActualItem { pub components: HashedPatchMap, } -#[derive(Clone, Debug, AzBuf, PartialEq)] +#[derive(AzBuf, Clone, Debug, PartialEq)] pub struct HashedPatchMap { #[limit(256)] pub added_components: Vec<(DataComponentKind, Checksum)>, -- cgit v1.2.3