From 8e2e81651ce8a9ed93d11e2970dc37de58b0310f Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 27 Apr 2024 06:08:38 +0000 Subject: fmt --- azalea-protocol/src/packets/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'azalea-protocol/src/packets') diff --git a/azalea-protocol/src/packets/mod.rs b/azalea-protocol/src/packets/mod.rs index 044bb56c..4d6a2fc2 100755 --- a/azalea-protocol/src/packets/mod.rs +++ b/azalea-protocol/src/packets/mod.rs @@ -54,7 +54,7 @@ where pub enum ClientIntention { Status = 1, Login = 2, - Transfer = 3 + Transfer = 3, } impl TryFrom for ClientIntention { @@ -82,7 +82,8 @@ impl From for ConnectionProtocol { impl azalea_buf::McBufReadable for ClientIntention { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { let id = i32::var_read_from(buf)?; - id.try_into().map_err(|_| BufReadError::UnexpectedEnumVariant { id }) + id.try_into() + .map_err(|_| BufReadError::UnexpectedEnumVariant { id }) } } @@ -90,4 +91,4 @@ impl McBufWritable for ClientIntention { fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { (*self as i32).var_write_into(buf) } -} \ No newline at end of file +} -- cgit v1.2.3