aboutsummaryrefslogtreecommitdiff
path: root/azalea-inventory/src/components/profile.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-inventory/src/components/profile.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-inventory/src/components/profile.rs')
-rw-r--r--azalea-inventory/src/components/profile.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea-inventory/src/components/profile.rs b/azalea-inventory/src/components/profile.rs
index 11b0e6e1..8a0fdf50 100644
--- a/azalea-inventory/src/components/profile.rs
+++ b/azalea-inventory/src/components/profile.rs
@@ -7,7 +7,7 @@ use azalea_registry::identifier::Identifier;
use serde::{Serialize, Serializer};
use uuid::Uuid;
-#[derive(Clone, Debug, AzBuf, Default, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Debug, Default, PartialEq, Serialize)]
#[doc(alias = "ResolvableProfile")]
pub struct Profile {
#[serde(flatten)]
@@ -16,7 +16,7 @@ pub struct Profile {
pub skin_patch: Box<PlayerSkinPatch>,
}
-#[derive(Clone, Debug, AzBuf, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Debug, PartialEq, Serialize)]
#[serde(untagged)]
pub enum PartialOrFullProfile {
Partial(PartialProfile),
@@ -28,7 +28,7 @@ impl Default for PartialOrFullProfile {
}
}
-#[derive(Clone, Debug, AzBuf, Default, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Debug, Default, PartialEq, Serialize)]
pub struct PartialProfile {
#[limit(16)]
#[serde(skip_serializing_if = "is_default")]
@@ -47,7 +47,7 @@ fn serialize_properties<S: Serializer>(
serializable.serialize(serializer)
}
-#[derive(Clone, Debug, AzBuf, Default, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Debug, Default, PartialEq, Serialize)]
pub struct PlayerSkinPatch {
#[serde(rename = "texture")]
#[serde(skip_serializing_if = "is_default")]
@@ -60,7 +60,7 @@ pub struct PlayerSkinPatch {
pub model: Option<PlayerModelType>,
}
-#[derive(Clone, Debug, Copy, AzBuf, Default, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Copy, Debug, Default, PartialEq, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum PlayerModelType {
#[default]
@@ -68,7 +68,7 @@ pub enum PlayerModelType {
Slim,
}
-#[derive(Clone, Debug, AzBuf, PartialEq, Serialize)]
+#[derive(AzBuf, Clone, Debug, PartialEq, Serialize)]
#[serde(transparent)]
pub struct ResourceTexture {
pub id: Identifier,