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/examples/todo | |
| 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/examples/todo')
| -rw-r--r-- | azalea/examples/todo/craft_dig_straight_down.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/todo/mine_a_chunk.rs | 4 | ||||
| -rw-r--r-- | azalea/examples/todo/pvp.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs index a76c1ffe..153af299 100644 --- a/azalea/examples/todo/craft_dig_straight_down.rs +++ b/azalea/examples/todo/craft_dig_straight_down.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use azalea::{pathfinder, prelude::*}; use parking_lot::Mutex; -#[derive(Default, Clone, Component)] +#[derive(Clone, Component, Default)] struct State { pub started: Arc<Mutex<bool>>, } diff --git a/azalea/examples/todo/mine_a_chunk.rs b/azalea/examples/todo/mine_a_chunk.rs index 6f6606f4..17fff5df 100644 --- a/azalea/examples/todo/mine_a_chunk.rs +++ b/azalea/examples/todo/mine_a_chunk.rs @@ -18,10 +18,10 @@ async fn main() -> AppExit { .await } -#[derive(Default, Clone, Component)] +#[derive(Clone, Component, Default)] struct State {} -#[derive(Default, Clone, Resource)] +#[derive(Clone, Default, Resource)] struct SwarmState {} async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { diff --git a/azalea/examples/todo/pvp.rs b/azalea/examples/todo/pvp.rs index 9121444c..3c86778f 100644 --- a/azalea/examples/todo/pvp.rs +++ b/azalea/examples/todo/pvp.rs @@ -24,10 +24,10 @@ async fn main() -> AppExit { .await } -#[derive(Component, Default, Clone)] +#[derive(Clone, Component, Default)] struct State {} -#[derive(Resource, Default, Clone)] +#[derive(Clone, Default, Resource)] struct SwarmState {} async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> { |
