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/auto_reconnect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins/auto_reconnect.rs') diff --git a/azalea-client/src/plugins/auto_reconnect.rs b/azalea-client/src/plugins/auto_reconnect.rs index fd24f12c..4851a4e7 100644 --- a/azalea-client/src/plugins/auto_reconnect.rs +++ b/azalea-client/src/plugins/auto_reconnect.rs @@ -126,7 +126,7 @@ pub fn rejoin_after_delay( /// You can also remove this resource from the ECS to disable the default /// auto-reconnecting behavior. Inserting the resource/component again will not /// make clients that were already disconnected automatically reconnect. -#[derive(Resource, Component, Debug, Clone)] +#[derive(Clone, Component, Debug, Resource)] pub struct AutoReconnectDelay { pub delay: Duration, } @@ -139,7 +139,7 @@ impl AutoReconnectDelay { /// This is inserted when we're disconnected and indicates when we'll reconnect. /// /// This is set based on [`AutoReconnectDelay`]. -#[derive(Component, Debug, Clone)] +#[derive(Clone, Component, Debug)] pub struct InternalReconnectAfter { pub instant: Instant, } -- cgit v1.2.3