diff --git a/kubi-udp/src/client.rs b/kubi-udp/src/client.rs index f2be789..5f64b2c 100644 --- a/kubi-udp/src/client.rs +++ b/kubi-udp/src/client.rs @@ -7,8 +7,8 @@ use crate::{BINCODE_CONFIG, packet::ClientPacket}; pub struct Client where S: Encode + Decode, R: Encode + Decode { socket: UdpSocket, - _s: PhantomData, - _r: PhantomData, + _s: PhantomData<*const S>, + _r: PhantomData<*const R>, } impl Client where S: Encode + Decode, R: Encode + Decode { pub fn connect(addr: SocketAddr) -> anyhow::Result {