aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/read.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 14:44:48 -1300
committermat <git@matdoes.dev>2025-05-30 14:44:48 -1300
commite37524899eef8a0034faee35cef4bbf1ba779a7d (patch)
tree5afe343086db2a9ebc78fe0a6987b9325286cc66 /azalea-protocol/src/read.rs
parentae4b1e85e669bc882d158509ef1eda46c6b2a72e (diff)
downloadazalea-drasl-e37524899eef8a0034faee35cef4bbf1ba779a7d.tar.xz
formatting: merge imports
Diffstat (limited to 'azalea-protocol/src/read.rs')
-rw-r--r--azalea-protocol/src/read.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index 422d7f7a..433a2718 100644
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
@@ -1,23 +1,25 @@
//! Read packets from a stream.
-use std::backtrace::Backtrace;
-use std::sync::LazyLock;
-use std::{env, io};
use std::{
+ backtrace::Backtrace,
+ env,
fmt::Debug,
+ io,
io::{Cursor, Read},
+ sync::LazyLock,
};
-use azalea_buf::AzaleaReadVar;
-use azalea_buf::BufReadError;
+use azalea_buf::{AzaleaReadVar, BufReadError};
use azalea_crypto::Aes128CfbDec;
use flate2::read::ZlibDecoder;
use futures::StreamExt;
use futures_lite::future;
use thiserror::Error;
use tokio::io::AsyncRead;
-use tokio_util::bytes::Buf;
-use tokio_util::codec::{BytesCodec, FramedRead};
+use tokio_util::{
+ bytes::Buf,
+ codec::{BytesCodec, FramedRead},
+};
use tracing::trace;
use crate::packets::ProtocolPacket;