From 32458d743f757da3193717fe5554f490703640c0 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 1 Sep 2022 20:37:38 -0500 Subject: fix bad u32::write_into and add tests --- azalea-protocol/src/lib.rs | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src/lib.rs') diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index b1d1a9c4..f5922e27 100755 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -50,9 +50,39 @@ pub async fn connect(address: ServerAddress) -> Result<(), Box(&mut stream, None, &mut None) + .await + .unwrap(); } } -- cgit v1.2.3