From 4edb95d247da126fcb44d9909d42f745235bf538 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 1 Sep 2019 14:57:08 -0300 Subject: [PATCH] assert.to_le_bytes to assert.as_bytes --- src/packet/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packet/login.rs b/src/packet/login.rs index 72a12a3..0af5437 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -257,7 +257,7 @@ mod tests { #[test] fn test_login_checksum_ack() { - let mut checksum_ack = super::ChecksumAck::new(1); - assert!(u32::to_le_bytes(checksum_ack.ack) == [0x01, 0x00, 0x00, 0x00]); + let checksum_ack = super::ChecksumAck::new(1); + assert!(u32::as_bytes(checksum_ack.ack) == [0x00, 0x00, 0x00, 0x01]); } }