diff options
| author | Fuwn <[email protected]> | 2024-06-03 15:23:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 15:23:14 -0700 |
| commit | 19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52 (patch) | |
| tree | 22353b8c7a78b83c992b7bfb60c024fee6f78e3e /crates/whirl_server/src/hub.rs | |
| parent | chore(rustfmt): add new rules (diff) | |
| download | whirl-19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52.tar.xz whirl-19010055c88fd7aac23f3ce39fa6a5ec1cbf9a52.zip | |
format: rustfmt with new rules
Diffstat (limited to 'crates/whirl_server/src/hub.rs')
| -rw-r--r-- | crates/whirl_server/src/hub.rs | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/crates/whirl_server/src/hub.rs b/crates/whirl_server/src/hub.rs index f271c28..af4e656 100644 --- a/crates/whirl_server/src/hub.rs +++ b/crates/whirl_server/src/hub.rs @@ -8,38 +8,38 @@ //! client after they have been redirected to a room (Hub) and finished their //! business with the Distributor (`AutoServer`). -use std::{error::Error, net::SocketAddr, sync::Arc}; - -use tokio::{io::AsyncWriteExt, net::TcpStream, sync::Mutex}; -use tokio_stream::StreamExt; -use tokio_util::codec::{BytesCodec, Decoder}; -use whirl_config::Config; - -use crate::{ - cmd::{ - commands::{ - action::create, - appear_actor::AppearActor, - buddy_list::BuddyList, - property::create::{property_request_as_hub, property_update_as_hub}, - register_object_id::RegisterObjectId, - session_exit::SessionExit, - subscribe_distance::SubscribeDistance, - subscribe_room::SubscribeRoom, - teleport::Teleport, - text::Text, +use { + crate::{ + cmd::{ + commands::{ + action::create, + appear_actor::AppearActor, + buddy_list::BuddyList, + property::create::{property_request_as_hub, property_update_as_hub}, + register_object_id::RegisterObjectId, + session_exit::SessionExit, + subscribe_distance::SubscribeDistance, + subscribe_room::SubscribeRoom, + teleport::Teleport, + text::Text, + }, + constants::Command, + extendable::{Creatable, Parsable, ParsableWithArguments}, }, - constants::Command, - extendable::{Creatable, Parsable, ParsableWithArguments}, - }, - interaction::{peer::Peer, shared::Shared}, - net::{ - constants::{VAR_ERROR, VAR_USERNAME}, - network_property::NetworkProperty, - property_list::PropertyList, + interaction::{peer::Peer, shared::Shared}, + net::{ + constants::{VAR_ERROR, VAR_USERNAME}, + network_property::NetworkProperty, + property_list::PropertyList, + }, + packet_parser::parse_commands_from_packet, + Server, }, - packet_parser::parse_commands_from_packet, - Server, + std::{error::Error, net::SocketAddr, sync::Arc}, + tokio::{io::AsyncWriteExt, net::TcpStream, sync::Mutex}, + tokio_stream::StreamExt, + tokio_util::codec::{BytesCodec, Decoder}, + whirl_config::Config, }; /// Spawn a Hub. |