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/login/c_cookie_request.rs | 2 +- azalea-protocol/src/packets/login/c_custom_query.rs | 2 +- azalea-protocol/src/packets/login/c_hello.rs | 2 +- azalea-protocol/src/packets/login/c_login_compression.rs | 2 +- azalea-protocol/src/packets/login/c_login_disconnect.rs | 2 +- azalea-protocol/src/packets/login/c_login_finished.rs | 2 +- azalea-protocol/src/packets/login/s_cookie_response.rs | 2 +- azalea-protocol/src/packets/login/s_custom_query_answer.rs | 2 +- azalea-protocol/src/packets/login/s_hello.rs | 2 +- azalea-protocol/src/packets/login/s_key.rs | 2 +- azalea-protocol/src/packets/login/s_login_acknowledged.rs | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'azalea-protocol/src/packets/login') diff --git a/azalea-protocol/src/packets/login/c_cookie_request.rs b/azalea-protocol/src/packets/login/c_cookie_request.rs index 2df3aaa0..4122325e 100644 --- a/azalea-protocol/src/packets/login/c_cookie_request.rs +++ b/azalea-protocol/src/packets/login/c_cookie_request.rs @@ -2,7 +2,7 @@ use azalea_buf::AzBuf; use azalea_registry::identifier::Identifier; use azalea_protocol_macros::ClientboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundLoginPacket)] +#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, PartialEq)] pub struct ClientboundCookieRequest { pub key: Identifier, } diff --git a/azalea-protocol/src/packets/login/c_custom_query.rs b/azalea-protocol/src/packets/login/c_custom_query.rs index 6f975cf4..f4566d4e 100644 --- a/azalea-protocol/src/packets/login/c_custom_query.rs +++ b/azalea-protocol/src/packets/login/c_custom_query.rs @@ -4,7 +4,7 @@ use azalea_buf::{AzBuf, UnsizedByteArray}; use azalea_registry::identifier::Identifier; use azalea_protocol_macros::ClientboundLoginPacket; -#[derive(Hash, Clone, Debug, AzBuf, PartialEq, ClientboundLoginPacket)] +#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, Hash, PartialEq)] pub struct ClientboundCustomQuery { #[var] pub transaction_id: u32, diff --git a/azalea-protocol/src/packets/login/c_hello.rs b/azalea-protocol/src/packets/login/c_hello.rs index 0057397c..3e87418f 100644 --- a/azalea-protocol/src/packets/login/c_hello.rs +++ b/azalea-protocol/src/packets/login/c_hello.rs @@ -1,7 +1,7 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundLoginPacket)] +#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, PartialEq)] pub struct ClientboundHello { #[limit(20)] pub server_id: String, diff --git a/azalea-protocol/src/packets/login/c_login_compression.rs b/azalea-protocol/src/packets/login/c_login_compression.rs index 7294c8a5..a12ab5fa 100644 --- a/azalea-protocol/src/packets/login/c_login_compression.rs +++ b/azalea-protocol/src/packets/login/c_login_compression.rs @@ -3,7 +3,7 @@ use std::hash::Hash; use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundLoginPacket; -#[derive(Hash, Clone, Debug, AzBuf, PartialEq, ClientboundLoginPacket)] +#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, Hash, PartialEq)] pub struct ClientboundLoginCompression { #[var] pub compression_threshold: i32, diff --git a/azalea-protocol/src/packets/login/c_login_disconnect.rs b/azalea-protocol/src/packets/login/c_login_disconnect.rs index 7f8dd5f0..950d5e5c 100644 --- a/azalea-protocol/src/packets/login/c_login_disconnect.rs +++ b/azalea-protocol/src/packets/login/c_login_disconnect.rs @@ -6,7 +6,7 @@ use azalea_protocol_macros::ClientboundLoginPacket; use serde::{Deserialize, Serialize}; use tracing::trace; -#[derive(Clone, Debug, PartialEq, ClientboundLoginPacket)] +#[derive(ClientboundLoginPacket, Clone, Debug, PartialEq)] pub struct ClientboundLoginDisconnect { pub reason: FormattedText, } diff --git a/azalea-protocol/src/packets/login/c_login_finished.rs b/azalea-protocol/src/packets/login/c_login_finished.rs index ecc79ff0..643e3a7a 100644 --- a/azalea-protocol/src/packets/login/c_login_finished.rs +++ b/azalea-protocol/src/packets/login/c_login_finished.rs @@ -2,7 +2,7 @@ use azalea_auth::game_profile::GameProfile; use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundLoginPacket)] +#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, PartialEq)] pub struct ClientboundLoginFinished { pub game_profile: GameProfile, } diff --git a/azalea-protocol/src/packets/login/s_cookie_response.rs b/azalea-protocol/src/packets/login/s_cookie_response.rs index 73efc2a8..504de740 100644 --- a/azalea-protocol/src/packets/login/s_cookie_response.rs +++ b/azalea-protocol/src/packets/login/s_cookie_response.rs @@ -2,7 +2,7 @@ use azalea_buf::AzBuf; use azalea_registry::identifier::Identifier; use azalea_protocol_macros::ServerboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundLoginPacket)] +#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundLoginPacket)] pub struct ServerboundCookieResponse { pub key: Identifier, pub payload: Option>, diff --git a/azalea-protocol/src/packets/login/s_custom_query_answer.rs b/azalea-protocol/src/packets/login/s_custom_query_answer.rs index af0c4237..478ea026 100644 --- a/azalea-protocol/src/packets/login/s_custom_query_answer.rs +++ b/azalea-protocol/src/packets/login/s_custom_query_answer.rs @@ -3,7 +3,7 @@ use std::hash::Hash; use azalea_buf::{AzBuf, UnsizedByteArray}; use azalea_protocol_macros::ServerboundLoginPacket; -#[derive(Hash, Clone, Debug, AzBuf, PartialEq, ServerboundLoginPacket)] +#[derive(AzBuf, Clone, Debug, Hash, PartialEq, ServerboundLoginPacket)] pub struct ServerboundCustomQueryAnswer { #[var] pub transaction_id: u32, diff --git a/azalea-protocol/src/packets/login/s_hello.rs b/azalea-protocol/src/packets/login/s_hello.rs index a65fe6a1..a7a9f4ee 100644 --- a/azalea-protocol/src/packets/login/s_hello.rs +++ b/azalea-protocol/src/packets/login/s_hello.rs @@ -2,7 +2,7 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundLoginPacket; use uuid::Uuid; -#[derive(Clone, Debug, Eq, AzBuf, PartialEq, ServerboundLoginPacket)] +#[derive(AzBuf, Clone, Debug, Eq, PartialEq, ServerboundLoginPacket)] pub struct ServerboundHello { #[limit(16)] pub name: String, diff --git a/azalea-protocol/src/packets/login/s_key.rs b/azalea-protocol/src/packets/login/s_key.rs index a3a404c6..d5268a19 100644 --- a/azalea-protocol/src/packets/login/s_key.rs +++ b/azalea-protocol/src/packets/login/s_key.rs @@ -1,7 +1,7 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundLoginPacket)] +#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundLoginPacket)] pub struct ServerboundKey { pub key_bytes: Vec, pub encrypted_challenge: Vec, diff --git a/azalea-protocol/src/packets/login/s_login_acknowledged.rs b/azalea-protocol/src/packets/login/s_login_acknowledged.rs index da1c0f9f..e0f0a47c 100644 --- a/azalea-protocol/src/packets/login/s_login_acknowledged.rs +++ b/azalea-protocol/src/packets/login/s_login_acknowledged.rs @@ -1,5 +1,5 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundLoginPacket; -#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundLoginPacket)] +#[derive(AzBuf, Clone, Debug, PartialEq, ServerboundLoginPacket)] pub struct ServerboundLoginAcknowledged; -- cgit v1.2.3