diff options
Diffstat (limited to 'minecraft-protocol/src/packets/login/clientbound_hello_packet.rs')
| -rw-r--r-- | minecraft-protocol/src/packets/login/clientbound_hello_packet.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs b/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs index 878ca456..c0ec85f3 100644 --- a/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs +++ b/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs @@ -2,10 +2,7 @@ use async_trait::async_trait; use std::hash::Hash; use tokio::io::BufReader; -use crate::{ - mc_buf, - packets::{Packet, PacketTrait}, -}; +use crate::{mc_buf, packets::Packet}; #[derive(Hash, Clone, Debug)] pub struct ClientboundHelloPacket { @@ -14,8 +11,7 @@ pub struct ClientboundHelloPacket { pub nonce: Vec<u8>, } -#[async_trait] -impl PacketTrait for ClientboundHelloPacket { +impl ClientboundHelloPacket { fn get(self) -> Packet { Packet::ClientboundHelloPacket(self) } |
