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/plugins/movement.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea-client/src/plugins/movement.rs') diff --git a/azalea-client/src/plugins/movement.rs b/azalea-client/src/plugins/movement.rs index 703b5557..15d4a468 100644 --- a/azalea-client/src/plugins/movement.rs +++ b/azalea-client/src/plugins/movement.rs @@ -74,7 +74,7 @@ impl Plugin for MovementPlugin { } } -#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone)] +#[derive(Clone, Debug, Eq, Hash, PartialEq, SystemSet)] pub struct MoveEventsSystems; impl Client { @@ -128,7 +128,7 @@ impl Client { /// A component that contains the look direction that was last sent over the /// network. -#[derive(Debug, Component, Clone, Default)] +#[derive(Clone, Component, Debug, Default)] pub struct LastSentLookDirection { pub x_rot: f32, pub y_rot: f32, @@ -242,7 +242,7 @@ pub fn send_position( } } -#[derive(Debug, Default, Component, Clone, PartialEq, Eq)] +#[derive(Clone, Component, Debug, Default, Eq, PartialEq)] pub struct LastSentInput(pub ServerboundPlayerInput); pub fn send_player_input_packet( mut query: Query<(Entity, &PhysicsState, &Jumping, Option<&LastSentInput>)>, @@ -571,7 +571,7 @@ impl Client { /// This does not get sent for non-local entities. /// /// To stop walking or sprinting, send this event with `WalkDirection::None`. -#[derive(Message, Debug)] +#[derive(Debug, Message)] pub struct StartWalkEvent { pub entity: Entity, pub direction: WalkDirection, -- cgit v1.2.3