diff options
| author | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
| commit | 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch) | |
| tree | 3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-protocol/src/packets/login | |
| parent | b762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff) | |
| download | azalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz | |
group imports with rustfmt
Diffstat (limited to 'azalea-protocol/src/packets/login')
4 files changed, 8 insertions, 4 deletions
diff --git a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs index 50d2e2d3..75993fd9 100755 --- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs @@ -1,7 +1,8 @@ +use std::hash::Hash; + use azalea_buf::{McBuf, UnsizedByteArray}; use azalea_core::resource_location::ResourceLocation; use azalea_protocol_macros::ClientboundLoginPacket; -use std::hash::Hash; #[derive(Hash, Clone, Debug, McBuf, ClientboundLoginPacket)] pub struct ClientboundCustomQueryPacket { diff --git a/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs b/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs index 6976298a..4b8fb0c8 100755 --- a/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_login_compression_packet.rs @@ -1,6 +1,7 @@ +use std::hash::Hash; + use azalea_buf::McBuf; use azalea_protocol_macros::ClientboundLoginPacket; -use std::hash::Hash; #[derive(Hash, Clone, Debug, ClientboundLoginPacket, McBuf)] pub struct ClientboundLoginCompressionPacket { diff --git a/azalea-protocol/src/packets/login/serverbound_custom_query_answer_packet.rs b/azalea-protocol/src/packets/login/serverbound_custom_query_answer_packet.rs index 7eb8b28f..fe9460a2 100644 --- a/azalea-protocol/src/packets/login/serverbound_custom_query_answer_packet.rs +++ b/azalea-protocol/src/packets/login/serverbound_custom_query_answer_packet.rs @@ -1,6 +1,7 @@ +use std::hash::Hash; + use azalea_buf::{McBuf, UnsizedByteArray}; use azalea_protocol_macros::ServerboundLoginPacket; -use std::hash::Hash; #[derive(Hash, Clone, Debug, McBuf, ServerboundLoginPacket)] pub struct ServerboundCustomQueryAnswerPacket { diff --git a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs index d46fe308..51ff1830 100755 --- a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs +++ b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs @@ -12,9 +12,10 @@ pub struct ServerboundHelloPacket { mod tests { use std::io::Cursor; - use super::*; use azalea_buf::{McBufReadable, McBufWritable}; + use super::*; + #[test] fn test_read_write() { let packet = ServerboundHelloPacket { |
