aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/registry_holder/mod.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-core/src/registry_holder/mod.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-core/src/registry_holder/mod.rs')
-rw-r--r--azalea-core/src/registry_holder/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-core/src/registry_holder/mod.rs b/azalea-core/src/registry_holder/mod.rs
index 886c75e1..90bad921 100644
--- a/azalea-core/src/registry_holder/mod.rs
+++ b/azalea-core/src/registry_holder/mod.rs
@@ -30,7 +30,7 @@ use tracing::error;
/// per-client like you might expect. This is an optimization for swarms to
/// reduce memory usage, since registries are expected to be the same for every
/// client in a world.
-#[derive(Default, Debug, Clone)]
+#[derive(Clone, Debug, Default)]
pub struct RegistryHolder {
// if you add new fields here, don't forget to also update `RegistryHolder::append`,
// `protocol_id_to_identifier`, and `define_default_deserializes_to!` in
@@ -124,7 +124,7 @@ fn nbt_to_serializable_type<T: simdnbt::Deserialize>(
T::from_compound((&nbt_borrow_compound).into()).map_err(Into::into)
}
-#[derive(Error, Debug)]
+#[derive(Debug, Error)]
enum NbtToSerializableTypeError {
#[error(transparent)]
NbtError(#[from] simdnbt::Error),
@@ -133,7 +133,7 @@ enum NbtToSerializableTypeError {
}
/// A collection of values for a certain type of registry data.
-#[derive(Debug, Clone)]
+#[derive(Clone, Debug)]
pub struct RegistryType<T: simdnbt::Deserialize> {
pub map: IndexMap<Identifier, T>,
}