From 4d0f8038be248fb4c8dd8e9af8259ada4d2b5780 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 9 Mar 2023 18:00:32 +0100 Subject: [PATCH] fix client --- kubi/src/networking.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubi/src/networking.rs b/kubi/src/networking.rs index 38ae7a0..7914039 100644 --- a/kubi/src/networking.rs +++ b/kubi/src/networking.rs @@ -114,8 +114,7 @@ fn check_server_hello_response( fn decompress_chunk_packet(data: &Box<[u8]>) -> Result { let mut decompressed = decompress_size_prepended(&data[1..])?; decompressed.insert(0, data[0]); - let deserialized = postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?; - Ok(deserialized) + Ok(postcard::from_bytes(&decompressed).ok().context("Deserialization failed")?) } //TODO get rid of this, this is awfulll