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-physics/src/local_player.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-physics/src/local_player.rs') diff --git a/azalea-physics/src/local_player.rs b/azalea-physics/src/local_player.rs index f2f213d8..75bbbfb9 100644 --- a/azalea-physics/src/local_player.rs +++ b/azalea-physics/src/local_player.rs @@ -6,7 +6,7 @@ use bevy_ecs::component::Component; /// Usually only present for [`LocalEntity`]s. /// /// [`LocalEntity`]: azalea_entity::LocalEntity -#[derive(Default, Component, Clone)] +#[derive(Clone, Component, Default)] pub struct PhysicsState { /// Minecraft only sends a movement packet either after 20 ticks or if the /// player moved enough. This is that tick counter. @@ -35,7 +35,7 @@ pub struct PhysicsState { /// A direction that a player can walk in, including none. /// /// Superset of [`SprintDirection`]. -#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub enum WalkDirection { #[default] None, -- cgit v1.2.3