From b030b9de9345d7b1cfef205e5b9a1e2c7dc6025e Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 18 Dec 2021 20:33:16 -0600 Subject: nbt --- azalea-protocol/src/read.rs | 4 +--- azalea-protocol/src/write.rs | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'azalea-protocol') 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(stream: &mut R) -> Result, 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, }; -- cgit v1.2.3