From c1588ef66e844c067112ea880a54b4de9ec5a062 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 25 Feb 2023 17:32:15 -0600 Subject: Fix system order ambiguities (#74) * start fixing stuff where systems run in the wrong order * fix ordering ambiguity * add debugging guide * some fixes * fix panic for swarms * fix some warnings --- azalea-protocol/src/lib.rs | 5 +---- azalea-protocol/src/read.rs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index d9860a8b..8c357905 100644 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -79,10 +79,7 @@ impl Display for ServerAddress { #[cfg(test)] mod tests { - use std::{ - io::Cursor, - time::{SystemTime, UNIX_EPOCH}, - }; + use std::io::Cursor; use crate::{ packets::{ diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 1018c085..5436fb1d 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -264,6 +264,7 @@ mod tests { use crate::packets::game::ClientboundGamePacket; use std::io::Cursor; + #[test] fn test_read_packet() { let mut buf: Cursor<&[u8]> = Cursor::new(&[ 56, 64, 85, 58, 141, 138, 71, 146, 193, 64, 88, 0, 0, 0, 0, 0, 0, 64, 60, 224, 105, 34, -- cgit v1.2.3