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-client/src/local_player.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'azalea-client/src/local_player.rs') diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index 4bc69995..4062e32e 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -24,7 +24,7 @@ use crate::{ClientInformation, events::Event as AzaleaEvent, player::PlayerInfo} /// /// [`InstanceContainer`]: azalea_world::InstanceContainer /// [`InstanceName`]: azalea_world::InstanceName -#[derive(Component, Clone)] +#[derive(Clone, Component)] pub struct InstanceHolder { /// The partial instance is the world this client currently has loaded. /// @@ -40,7 +40,7 @@ pub struct InstanceHolder { /// The gamemode of a local player. For a non-local player, you can look up the /// player in the [`TabList`]. -#[derive(Component, Clone, Debug, Copy)] +#[derive(Clone, Component, Copy, Debug)] pub struct LocalGameMode { pub current: GameMode, pub previous: Option, @@ -55,7 +55,7 @@ impl From for LocalGameMode { } /// Level must be 0..=4 -#[derive(Component, Clone, Default, Deref, DerefMut)] +#[derive(Clone, Component, Default, Deref, DerefMut)] pub struct PermissionLevel(pub u8); /// A component that contains a map of player UUIDs to their information in the @@ -77,10 +77,10 @@ pub struct PermissionLevel(pub u8); /// was updated. /// This means you should avoid using `TabList` as a resource unless you know /// all of your clients will have the same tab list. -#[derive(Component, Resource, Clone, Debug, Deref, DerefMut, Default)] +#[derive(Clone, Component, Debug, Default, Deref, DerefMut, Resource)] pub struct TabList(HashMap); -#[derive(Component, Clone)] +#[derive(Clone, Component)] pub struct Hunger { /// The main hunger bar. This is typically in the range `0..=20`. pub food: u32, @@ -147,7 +147,7 @@ impl InstanceHolder { } } -#[derive(Error, Debug)] +#[derive(Debug, Error)] pub enum HandlePacketError { #[error("{0}")] Poison(String), -- cgit v1.2.3