diff options
Diffstat (limited to 'minecraft-protocol/src/packets/login')
| -rw-r--r-- | minecraft-protocol/src/packets/login/clientbound_hello_packet.rs | 3 | ||||
| -rw-r--r-- | minecraft-protocol/src/packets/login/serverbound_hello_packet.rs | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs b/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs index 7e69e3ce..2041497a 100644 --- a/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs +++ b/minecraft-protocol/src/packets/login/clientbound_hello_packet.rs @@ -1,8 +1,7 @@ -use async_trait::async_trait; use std::hash::Hash; use tokio::io::BufReader; -use crate::{mc_buf, packets::Packet}; +use crate::mc_buf; use super::LoginPacket; diff --git a/minecraft-protocol/src/packets/login/serverbound_hello_packet.rs b/minecraft-protocol/src/packets/login/serverbound_hello_packet.rs index 9415fe82..69448074 100644 --- a/minecraft-protocol/src/packets/login/serverbound_hello_packet.rs +++ b/minecraft-protocol/src/packets/login/serverbound_hello_packet.rs @@ -1,8 +1,7 @@ -use async_trait::async_trait; use std::hash::Hash; use tokio::io::BufReader; -use crate::{mc_buf, packets::Packet}; +use crate::mc_buf; use super::LoginPacket; @@ -21,7 +20,7 @@ impl ServerboundHelloPacket { } pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>( - buf: &mut BufReader<T>, + _buf: &mut BufReader<T>, ) -> Result<LoginPacket, String> { Err("ServerboundHelloPacket::read not implemented".to_string()) } |
