aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/packets/game/mod.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-15 14:06:14 -0600
committermat <github@matdoes.dev>2021-12-15 14:06:14 -0600
commit1c9e089b7268fe4ffeeee5e594bb2d708470d2a1 (patch)
tree7743fa0a6347d3adf727d7b942e6f91c1956e242 /minecraft-protocol/src/packets/game/mod.rs
parent732de94d7b9f1bf2bc9239c8138a37c53242b470 (diff)
downloadazalea-drasl-1c9e089b7268fe4ffeeee5e594bb2d708470d2a1.tar.xz
clippy
Diffstat (limited to 'minecraft-protocol/src/packets/game/mod.rs')
-rw-r--r--minecraft-protocol/src/packets/game/mod.rs14
1 files changed, 4 insertions, 10 deletions
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<u8>) {
- match self {
- _ => (),
- }
- }
+ fn write(&self, _buf: &mut Vec<u8>) {}
/// Read a packet by its id, ConnectionProtocol, and flow
async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
- id: u32,
+ _id: u32,
flow: &PacketFlow,
- buf: &mut BufReader<T>,
+ _buf: &mut BufReader<T>,
) -> Result<GamePacket, String>
where
Self: Sized,