From 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 26 Oct 2024 05:29:26 +0000 Subject: group imports with rustfmt --- azalea/src/swarm/chat.rs | 13 +++++++------ azalea/src/swarm/mod.rs | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'azalea/src/swarm') diff --git a/azalea/src/swarm/chat.rs b/azalea/src/swarm/chat.rs index 7425293b..cf01c60b 100644 --- a/azalea/src/swarm/chat.rs +++ b/azalea/src/swarm/chat.rs @@ -13,18 +13,19 @@ // in Swarm that's set to the smallest index of all the bots, and we remove all // messages from the queue that are before that index. +use std::collections::VecDeque; + +use azalea_client::chat::{ChatPacket, ChatReceivedEvent}; +use bevy_app::{App, Plugin, Update}; +use bevy_ecs::prelude::Event; + +use super::{Swarm, SwarmEvent}; use crate::ecs::{ component::Component, event::{EventReader, EventWriter}, schedule::IntoSystemConfigs, system::{Commands, Query, Res, ResMut, Resource}, }; -use azalea_client::chat::{ChatPacket, ChatReceivedEvent}; -use bevy_app::{App, Plugin, Update}; -use bevy_ecs::prelude::Event; -use std::collections::VecDeque; - -use super::{Swarm, SwarmEvent}; #[derive(Clone)] pub struct SwarmChatPlugin; diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 451d887c..8c2d23f6 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -4,6 +4,8 @@ mod chat; mod events; pub mod prelude; +use std::{collections::HashMap, future::Future, net::SocketAddr, sync::Arc, time::Duration}; + use azalea_client::{ chat::ChatPacket, start_ecs_runner, Account, Client, DefaultPlugins, Event, JoinError, StartClientOpts, @@ -14,7 +16,6 @@ use bevy_app::{App, PluginGroup, PluginGroupBuilder, Plugins}; use bevy_ecs::{component::Component, entity::Entity, system::Resource, world::World}; use futures::future::{join_all, BoxFuture}; use parking_lot::{Mutex, RwLock}; -use std::{collections::HashMap, future::Future, net::SocketAddr, sync::Arc, time::Duration}; use tokio::sync::mpsc; use tracing::error; -- cgit v1.2.3