diff options
| author | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 11:14:40 +0930 |
| commit | dcbd690f21665e22ea250024a1aa85dec34e6c9e (patch) | |
| tree | 411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-block/src | |
| parent | b0a2a809331b0f781517649857d31e0aec67d300 (diff) | |
| download | azalea-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/src')
| -rw-r--r-- | azalea-block/src/block_state.rs | 2 | ||||
| -rw-r--r-- | azalea-block/src/fluid_state.rs | 2 | ||||
| -rw-r--r-- | azalea-block/src/range.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/azalea-block/src/block_state.rs b/azalea-block/src/block_state.rs index d39961b3..f7ef9006 100644 --- a/azalea-block/src/block_state.rs +++ b/azalea-block/src/block_state.rs @@ -24,7 +24,7 @@ pub type BlockStateIntegerRepr = u16; /// /// Note that this type is internally either a `u16` or `u32`, depending on /// [`BlockStateIntegerRepr`]. -#[derive(Copy, Clone, PartialEq, Eq, Default, Hash)] +#[derive(Clone, Copy, Default, Eq, Hash, PartialEq)] pub struct BlockState { id: BlockStateIntegerRepr, } diff --git a/azalea-block/src/fluid_state.rs b/azalea-block/src/fluid_state.rs index 0a8f7336..155a92be 100644 --- a/azalea-block/src/fluid_state.rs +++ b/azalea-block/src/fluid_state.rs @@ -22,7 +22,7 @@ pub struct FluidState { /// set (see FlowingFluid.getFlowing) pub falling: bool, } -#[derive(Default, Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub enum FluidKind { #[default] Empty, diff --git a/azalea-block/src/range.rs b/azalea-block/src/range.rs index 53d2c10f..3680314a 100644 --- a/azalea-block/src/range.rs +++ b/azalea-block/src/range.rs @@ -8,7 +8,7 @@ use azalea_registry::{builtin::BlockKind, tags::RegistryTag}; use crate::{BlockState, block_state::BlockStateIntegerRepr}; -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct BlockStates { pub set: HashSet<BlockState>, } |
