diff options
| author | mat <github@matdoes.dev> | 2021-12-18 20:33:16 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-18 20:33:16 -0600 |
| commit | b030b9de9345d7b1cfef205e5b9a1e2c7dc6025e (patch) | |
| tree | 1ce3beaae90328186d98e0de2c5c3c3f376f0d55 /azalea-protocol/src | |
| parent | 76e1985fc4ab21c43e17fef685b17a567b1073a5 (diff) | |
| download | azalea-drasl-b030b9de9345d7b1cfef205e5b9a1e2c7dc6025e.tar.xz | |
nbt
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/read.rs | 4 | ||||
| -rw-r--r-- | azalea-protocol/src/write.rs | 4 |
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, }; |
