From 1c9e089b7268fe4ffeeee5e594bb2d708470d2a1 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 15 Dec 2021 14:06:14 -0600 Subject: clippy --- minecraft-protocol/src/packets/game/mod.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'minecraft-protocol/src/packets/game') diff --git a/minecraft-protocol/src/packets/game/mod.rs b/minecraft-protocol/src/packets/game/mod.rs index 06d8ae4c..a3ef2541 100644 --- a/minecraft-protocol/src/packets/game/mod.rs +++ b/minecraft-protocol/src/packets/game/mod.rs @@ -13,22 +13,16 @@ where #[async_trait] impl ProtocolPacket for GamePacket { fn id(&self) -> u32 { - match self { - _ => 0x00, - } + 0x00 } - fn write(&self, buf: &mut Vec) { - match self { - _ => (), - } - } + fn write(&self, _buf: &mut Vec) {} /// Read a packet by its id, ConnectionProtocol, and flow async fn read( - id: u32, + _id: u32, flow: &PacketFlow, - buf: &mut BufReader, + _buf: &mut BufReader, ) -> Result where Self: Sized, -- cgit v1.2.3