diff options
| author | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
| commit | dcbd690f21665e22ea250024a1aa85dec34e6c9e (patch) | |
| tree | 411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-protocol/src/address.rs | |
| parent | b0a2a809331b0f781517649857d31e0aec67d300 (diff) | |
| download | azalea-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-protocol/src/address.rs')
| -rw-r--r-- | azalea-protocol/src/address.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/address.rs b/azalea-protocol/src/address.rs index 569e2488..42ee2ac4 100644 --- a/azalea-protocol/src/address.rs +++ b/azalea-protocol/src/address.rs @@ -51,7 +51,7 @@ impl ResolvableAddr for &ResolvedAddr { /// assert_eq!(addr.host, "localhost"); /// assert_eq!(addr.port, 25565); /// ``` -#[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[derive(Clone, Debug, Eq, Hash, PartialEq)] pub struct ServerAddr { pub host: String, pub port: u16, @@ -137,7 +137,7 @@ impl serde::Serialize for ServerAddr { } /// An address that may be used to connect to a Minecraft server. -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct ResolvedAddr { /// The initial address that we passed when trying to connect. /// |
