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-world | |
| 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-world')
| -rw-r--r-- | azalea-world/src/chunk_storage.rs | 2 | ||||
| -rw-r--r-- | azalea-world/src/container.rs | 2 | ||||
| -rw-r--r-- | azalea-world/src/heightmap.rs | 2 | ||||
| -rw-r--r-- | azalea-world/src/palette/mod.rs | 2 | ||||
| -rw-r--r-- | azalea-world/src/world.rs | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index f8646209..2e87fdf6 100644 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -47,7 +47,7 @@ pub struct PartialChunkStorage { /// /// This is relatively cheap to clone since it's just an `IntMap` with `Weak` /// pointers. -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct ChunkStorage { pub height: u32, pub min_y: i32, diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index c2788198..f6966f3c 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -93,6 +93,6 @@ impl InstanceContainer { /// /// If two entities share the same instance name, we assume they're in the /// same instance. -#[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut, Hash, Eq)] +#[derive(Clone, Component, Debug, Deref, DerefMut, Eq, Hash, PartialEq)] #[doc(alias("worldname", "world name"))] pub struct InstanceName(pub Identifier); diff --git a/azalea-world/src/heightmap.rs b/azalea-world/src/heightmap.rs index 0f5e4c53..033fa569 100644 --- a/azalea-world/src/heightmap.rs +++ b/azalea-world/src/heightmap.rs @@ -13,7 +13,7 @@ use crate::{BitStorage, Section, chunk_storage::get_block_state_from_sections}; // (wg stands for worldgen) -#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, AzBuf)] +#[derive(AzBuf, Clone, Copy, Debug, Eq, Hash, PartialEq)] pub enum HeightmapKind { WorldSurfaceWg, WorldSurface, diff --git a/azalea-world/src/palette/mod.rs b/azalea-world/src/palette/mod.rs index 65a04f6a..4cbf690b 100644 --- a/azalea-world/src/palette/mod.rs +++ b/azalea-world/src/palette/mod.rs @@ -106,7 +106,7 @@ impl<S: PalletedContainerKind> From<&Palette<S>> for PaletteKind { } } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum PaletteKind { SingleValue, Linear, diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index c9833c64..82594986 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -66,7 +66,7 @@ impl PartialInstance { /// `#[var]` attribute. /// /// [`Entity`]: bevy_ecs::entity::Entity -#[derive(Component, Copy, Clone, Debug, Default, PartialEq, Eq, Deref, DerefMut)] +#[derive(Clone, Component, Copy, Debug, Default, Deref, DerefMut, Eq, PartialEq)] #[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] pub struct MinecraftEntityId(pub i32); @@ -150,7 +150,7 @@ impl PartialEntityInfos { /// /// This is sometimes interchangeably called a "world". However, this type is /// called `Instance` to avoid colliding with the `World` type from Bevy ECS. -#[derive(Default, Debug)] +#[derive(Debug, Default)] pub struct Instance { pub chunks: ChunkStorage, |
