diff options
| author | mat <git@matdoes.dev> | 2024-04-27 06:08:38 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-04-27 06:08:38 +0000 |
| commit | 8e2e81651ce8a9ed93d11e2970dc37de58b0310f (patch) | |
| tree | 3b4171d470beb7434a4b0cc66cf1a17585d357e0 /azalea-protocol/src/packets | |
| parent | 6553d9510ddc52469dd7557aa9675982cb5187ab (diff) | |
| download | azalea-drasl-8e2e81651ce8a9ed93d11e2970dc37de58b0310f.tar.xz | |
fmt
Diffstat (limited to 'azalea-protocol/src/packets')
| -rwxr-xr-x | azalea-protocol/src/packets/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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<i32> for ClientIntention { @@ -82,7 +82,8 @@ impl From<ClientIntention> for ConnectionProtocol { impl azalea_buf::McBufReadable for ClientIntention { fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { 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 +} |
