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-registry/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-registry/src/lib.rs') diff --git a/azalea-registry/src/lib.rs b/azalea-registry/src/lib.rs index 12f8323a..743f0deb 100644 --- a/azalea-registry/src/lib.rs +++ b/azalea-registry/src/lib.rs @@ -66,7 +66,7 @@ where /// A registry that might not be present. /// /// This is transmitted as a single varint in the protocol. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub struct OptionalRegistry(pub Option); impl AzaleaRead for OptionalRegistry { @@ -90,7 +90,7 @@ impl AzaleaWrite for OptionalRegistry { } /// A registry that will either take an ID or a resource location. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub enum CustomRegistry { Direct(D), Custom(C), -- cgit v1.2.3