aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/azalea-block-macros/src
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-block/azalea-block-macros/src
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-block/azalea-block-macros/src')
-rw-r--r--azalea-block/azalea-block-macros/src/lib.rs4
-rw-r--r--azalea-block/azalea-block-macros/src/property/generate.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/azalea-block/azalea-block-macros/src/lib.rs b/azalea-block/azalea-block-macros/src/lib.rs
index 1abfacbb..586d6a98 100644
--- a/azalea-block/azalea-block-macros/src/lib.rs
+++ b/azalea-block/azalea-block-macros/src/lib.rs
@@ -122,7 +122,7 @@ struct PropertyVariantData {
pub index: usize,
}
-#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, Eq, PartialEq)]
enum PropertyKind {
Enum,
Bool,
@@ -471,7 +471,7 @@ pub fn make_block_states(input: TokenStream) -> TokenStream {
let as_block_state = quote! { BlockState::new_const(#as_block_state_inner) };
let mut block_struct = quote! {
- #[derive(Debug, Copy, Clone, PartialEq)]
+ #[derive(Clone, Copy, Debug, PartialEq)]
pub struct #block_struct_name
};
if block_struct_fields.is_empty() {
diff --git a/azalea-block/azalea-block-macros/src/property/generate.rs b/azalea-block/azalea-block-macros/src/property/generate.rs
index 1af9b073..c49afd53 100644
--- a/azalea-block/azalea-block-macros/src/property/generate.rs
+++ b/azalea-block/azalea-block-macros/src/property/generate.rs
@@ -59,7 +59,7 @@ fn generate_property_code(
}
properties_code.extend(quote! {
- #[derive(Debug, Clone, Copy, PartialEq, Eq)]
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum #property_struct_name {
#property_enum_variants
}
@@ -81,7 +81,7 @@ fn generate_property_code(
});
properties_code.extend(quote! {
- #[derive(Debug, Clone, Copy, PartialEq, Eq)]
+ #[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct #property_struct_name(pub bool);
impl From<BlockStateIntegerRepr> for #property_struct_name {