aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/auto_reconnect.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 11:14:40 +0930
committermat <git@matdoes.dev>2025-12-15 11:14:40 +0930
commitdcbd690f21665e22ea250024a1aa85dec34e6c9e (patch)
tree411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-client/src/plugins/auto_reconnect.rs
parentb0a2a809331b0f781517649857d31e0aec67d300 (diff)
downloadazalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-client/src/plugins/auto_reconnect.rs')
-rw-r--r--azalea-client/src/plugins/auto_reconnect.rs4
1 files changed, 2 insertions, 2 deletions
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,
}