aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/read.rs4
-rw-r--r--azalea-protocol/src/write.rs4
2 files changed, 2 insertions, 6 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index 7b94135a..3d6a41d6 100644
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
@@ -1,8 +1,6 @@
-use std::io::Cursor;
-
use crate::{connect::PacketFlow, mc_buf::Readable, packets::ProtocolPacket};
use async_compression::tokio::bufread::ZlibDecoder;
-use tokio::io::{AsyncRead, AsyncReadExt, BufReader};
+use tokio::io::{AsyncRead, AsyncReadExt};
async fn frame_splitter<R>(stream: &mut R) -> Result<Vec<u8>, String>
where
diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs
index 4ae9f1c1..3898e74a 100644
--- a/azalea-protocol/src/write.rs
+++ b/azalea-protocol/src/write.rs
@@ -1,9 +1,7 @@
-use std::io::Read;
-
use crate::{mc_buf::Writable, packets::ProtocolPacket, read::MAXIMUM_UNCOMPRESSED_LENGTH};
use async_compression::tokio::bufread::ZlibEncoder;
use tokio::{
- io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt},
+ io::{AsyncReadExt, AsyncWriteExt},
net::TcpStream,
};