diff options
Diffstat (limited to 'azalea-registry/src')
| -rw-r--r-- | azalea-registry/src/data.rs | 4 | ||||
| -rw-r--r-- | azalea-registry/src/identifier.rs | 2 | ||||
| -rw-r--r-- | azalea-registry/src/lib.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/azalea-registry/src/data.rs b/azalea-registry/src/data.rs index 75fd8439..b2c3691b 100644 --- a/azalea-registry/src/data.rs +++ b/azalea-registry/src/data.rs @@ -16,7 +16,7 @@ macro_rules! data_registry { } ) => { $(#[$doc])* - #[derive(Debug, Clone, Copy, AzBuf, PartialEq, Eq, Hash, PartialOrd, Ord)] + #[derive(AzBuf, Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct $registry { #[var] id: u32, @@ -44,7 +44,7 @@ macro_rules! data_registry { } } - #[derive(Debug, PartialEq, Eq, Hash, Clone)] + #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum $enum_name<Other = Identifier> { $($variant),*, Other(Other) diff --git a/azalea-registry/src/identifier.rs b/azalea-registry/src/identifier.rs index b3456dab..c60f8381 100644 --- a/azalea-registry/src/identifier.rs +++ b/azalea-registry/src/identifier.rs @@ -17,7 +17,7 @@ use simdnbt::{FromNbtTag, ToNbtTag, owned::NbtTag}; /// /// This was formerly called a `ResourceLocation`. #[doc(alias = "ResourceLocation")] -#[derive(Hash, Clone, PartialEq, Eq, Default)] +#[derive(Clone, Default, Eq, Hash, PartialEq)] pub struct Identifier { // empty namespaces aren't allowed so NonZero is fine. colon_index: Option<NonZeroUsize>, 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<T: Registry>(pub Option<T>); impl<T: Registry> AzaleaRead for OptionalRegistry<T> { @@ -90,7 +90,7 @@ impl<T: Registry> AzaleaWrite for OptionalRegistry<T> { } /// 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<D: Registry, C: AzaleaRead + AzaleaWrite> { Direct(D), Custom(C), |
