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-protocol/src/connect.rs | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'azalea-protocol/src/connect.rs') diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index 20a6f403..0a449bfd 100755 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -1,5 +1,21 @@ //! Connect to remote servers/clients. +use std::fmt::Debug; +use std::io::Cursor; +use std::marker::PhantomData; +use std::net::SocketAddr; + +use azalea_auth::game_profile::GameProfile; +use azalea_auth::sessionserver::{ClientSessionServerError, ServerSessionServerError}; +use azalea_crypto::{Aes128CfbDec, Aes128CfbEnc}; +use bytes::BytesMut; +use thiserror::Error; +use tokio::io::{AsyncWriteExt, BufStream}; +use tokio::net::tcp::{OwnedReadHalf, OwnedWriteHalf, ReuniteError}; +use tokio::net::TcpStream; +use tracing::{error, info}; +use uuid::Uuid; + use crate::packets::configuration::{ ClientboundConfigurationPacket, ServerboundConfigurationPacket, }; @@ -11,20 +27,6 @@ use crate::packets::status::{ClientboundStatusPacket, ServerboundStatusPacket}; use crate::packets::ProtocolPacket; use crate::read::{deserialize_packet, read_raw_packet, try_read_raw_packet, ReadPacketError}; use crate::write::{serialize_packet, write_raw_packet}; -use azalea_auth::game_profile::GameProfile; -use azalea_auth::sessionserver::{ClientSessionServerError, ServerSessionServerError}; -use azalea_crypto::{Aes128CfbDec, Aes128CfbEnc}; -use bytes::BytesMut; -use std::fmt::Debug; -use std::io::Cursor; -use std::marker::PhantomData; -use std::net::SocketAddr; -use thiserror::Error; -use tokio::io::{AsyncWriteExt, BufStream}; -use tokio::net::tcp::{OwnedReadHalf, OwnedWriteHalf, ReuniteError}; -use tokio::net::TcpStream; -use tracing::{error, info}; -use uuid::Uuid; pub struct RawReadConnection { pub read_stream: OwnedReadHalf, -- cgit v1.2.3