- remove: unnecessary return in route_packet
This commit is contained in:
@@ -8,6 +8,6 @@ pub async fn route_packet(data: &[u8]) -> Result<(), Box<dyn Error>> {
|
|||||||
match packet.packet_type {
|
match packet.packet_type {
|
||||||
// 1 => chat::handle_chat(packet).await?,
|
// 1 => chat::handle_chat(packet).await?,
|
||||||
// 2 => movement::handle_movement(packet).await?,
|
// 2 => movement::handle_movement(packet).await?,
|
||||||
_ => return Err("Unknown packet type".into()),
|
_ => Err("Unknown packet type".into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user