aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/packets/mod.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-10 22:01:16 +0000
committermat <github@matdoes.dev>2021-12-10 22:01:16 +0000
commit5039f9668f3512240af22ac6bb49140012885509 (patch)
tree5300ef44f66345a82b0a568be20db67384707d27 /minecraft-protocol/src/packets/mod.rs
parent01a059c20cf3cf9330404d9e408a586500757fe6 (diff)
downloadazalea-drasl-5039f9668f3512240af22ac6bb49140012885509.tar.xz
clippy
Diffstat (limited to 'minecraft-protocol/src/packets/mod.rs')
-rw-r--r--minecraft-protocol/src/packets/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/minecraft-protocol/src/packets/mod.rs b/minecraft-protocol/src/packets/mod.rs
index 1fac2a3b..bacd0c27 100644
--- a/minecraft-protocol/src/packets/mod.rs
+++ b/minecraft-protocol/src/packets/mod.rs
@@ -46,9 +46,9 @@ impl Packet {
pub fn id(&self) -> u32 {
match self {
- Packet::ClientIntentionPacket(packet) => 0x00,
- Packet::ServerboundStatusRequestPacket(packet) => 0x00,
- Packet::ClientboundStatusResponsePacket(packet) => 0x00,
+ Packet::ClientIntentionPacket(_packet) => 0x00,
+ Packet::ServerboundStatusRequestPacket(_packet) => 0x00,
+ Packet::ClientboundStatusResponsePacket(_packet) => 0x00,
}
}
@@ -98,7 +98,7 @@ impl Packet {
pub trait PacketTrait {
/// Return a version of the packet that you can actually use for stuff
fn get(self) -> Packet;
- fn write(&self, buf: &mut Vec<u8>) -> ();
+ fn write(&self, buf: &mut Vec<u8>);
async fn read<T: AsyncRead + std::marker::Unpin + std::marker::Send>(
buf: &mut BufReader<T>,
) -> Result<Packet, String>