no drop check is needed

This commit is contained in:
griffi-gh 2023-02-01 03:25:12 +01:00
parent e6ec24a55c
commit 65ecf0de62

View file

@ -7,8 +7,8 @@ use crate::{BINCODE_CONFIG, packet::ClientPacket};
pub struct Client<S, R> where S: Encode + Decode, R: Encode + Decode {
socket: UdpSocket,
_s: PhantomData<S>,
_r: PhantomData<R>,
_s: PhantomData<*const S>,
_r: PhantomData<*const R>,
}
impl<S, R> Client<S, R> where S: Encode + Decode, R: Encode + Decode {
pub fn connect(addr: SocketAddr) -> anyhow::Result<Self> {