diff options
| author | mat <github@matdoes.dev> | 2021-12-10 22:01:16 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-10 22:01:16 +0000 |
| commit | 5039f9668f3512240af22ac6bb49140012885509 (patch) | |
| tree | 5300ef44f66345a82b0a568be20db67384707d27 /minecraft-protocol/src/connection.rs | |
| parent | 01a059c20cf3cf9330404d9e408a586500757fe6 (diff) | |
| download | azalea-drasl-5039f9668f3512240af22ac6bb49140012885509.tar.xz | |
clippy
Diffstat (limited to 'minecraft-protocol/src/connection.rs')
| -rw-r--r-- | minecraft-protocol/src/connection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/minecraft-protocol/src/connection.rs b/minecraft-protocol/src/connection.rs index a8319fe1..cfca403c 100644 --- a/minecraft-protocol/src/connection.rs +++ b/minecraft-protocol/src/connection.rs @@ -54,10 +54,10 @@ impl Connection { // the first thing minecraft sends us is the length as a varint, which can be up to 5 bytes long let mut buf = BufReader::with_capacity(4 * 1024 * 1024, &mut self.stream); println!("reading length varint"); - let (packet_size, packet_size_varint_size) = mc_buf::read_varint(&mut buf).await?; + let (_packet_size, _packet_size_varint_size) = mc_buf::read_varint(&mut buf).await?; // then, minecraft tells us the packet id as a varint println!("reading id varint"); - let (packet_id, packet_id_size) = mc_buf::read_varint(&mut buf).await?; + let (packet_id, _packet_id_size) = mc_buf::read_varint(&mut buf).await?; // if we recognize the packet id, parse it |
