From e46577a214ae30159d14c128c45488e3772c8f84 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 19 Sep 2022 21:21:46 -0500 Subject: Fix connection writer being locked (#23) * Split connection struct in az-protocol * az-client uses split conns * fix errors * add a convenience write_packet fn to az-client --- azalea-protocol/src/read.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'azalea-protocol/src/read.rs') diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 313fb412..3ff24f72 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -221,10 +221,7 @@ where #[cfg(test)] mod tests { use super::*; - use crate::packets::{ - game::{clientbound_player_chat_packet::ChatType, ClientboundGamePacket}, - handshake::ClientboundHandshakePacket, - }; + use crate::packets::game::{clientbound_player_chat_packet::ChatType, ClientboundGamePacket}; use std::io::Cursor; #[tokio::test] -- cgit v1.2.3