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/src/lib.rs | |
| 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/src/lib.rs')
| -rw-r--r-- | azalea/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 45c0114d..44c1fe0c 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -70,7 +70,7 @@ pub type HandleFn<S, Fut> = fn(Client, azalea_client::Event, S) -> Fut; /// .start(Account::offline("bot"), "localhost") /// .await; /// # } -/// # #[derive(Component, Clone, Default)] +/// # #[derive(Clone, Component, Default)] /// # pub struct State; /// # async fn handle(mut bot: Client, event: Event, state: State) -> anyhow::Result<()> { /// # Ok(()) @@ -118,7 +118,7 @@ impl ClientBuilder<NoState, ()> { /// ) /// .add_plugins(azalea::bot::DefaultBotPlugins); /// # client_builder.set_handler(handle); - /// # #[derive(Component, Clone, Default)] + /// # #[derive(Clone, Component, Default)] /// # pub struct State; /// # async fn handle(mut bot: Client, event: Event, state: State) -> anyhow::Result<()> { /// # Ok(()) @@ -146,7 +146,7 @@ impl ClientBuilder<NoState, ()> { /// # let client_builder = azalea::ClientBuilder::new(); /// client_builder.set_handler(handle); /// - /// # #[derive(Component, Clone, Default)] + /// # #[derive(Clone, Component, Default)] /// # pub struct State; /// async fn handle(mut bot: Client, event: Event, state: State) -> anyhow::Result<()> { /// Ok(()) @@ -254,7 +254,7 @@ impl Default for ClientBuilder<NoState, ()> { /// it for you. /// /// [`SwarmBuilder`]: swarm::SwarmBuilder -#[derive(Component, Clone, Default)] +#[derive(Clone, Component, Default)] pub struct NoState; /// Optional settings when adding an account to a swarm or client. |
