From 8ff2a828adcb6de8eb790a5ac98519e4b2e0e4c4 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 1 Feb 2023 03:25:39 +0100 Subject: [PATCH] x --- kubi-udp/src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kubi-udp/src/client.rs b/kubi-udp/src/client.rs index 5f64b2c..320ba2d 100644 --- a/kubi-udp/src/client.rs +++ b/kubi-udp/src/client.rs @@ -24,6 +24,7 @@ impl Client where S: Encode + Decode, R: Encode + Decode { client.send_packet(&ClientPacket::Connect)?; Ok(client) } + //maybe move generics here if possible? fn send_packet(&self, packet: &ClientPacket) -> anyhow::Result<()> { let bytes = bincode::encode_to_vec(packet, BINCODE_CONFIG)?; self.socket.send(&bytes)?;