From ad811de4ca7fba13d092b25a73d7f8650c0f96ef Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 1 Feb 2023 03:25:12 +0100 Subject: [PATCH] no drop check is needed --- kubi-udp/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {