From 65ecf0de62a0732dd8ff057ac7d9c17423882bf1 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 {