From ce30a8732c21a1c936ac560b5c94576df2e26b22 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 12 Jul 2026 22:06:54 +0200 Subject: remove unused code, also, third stable --- src/rcon.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/rcon.rs') diff --git a/src/rcon.rs b/src/rcon.rs index b91fe9b..eb3b72a 100644 --- a/src/rcon.rs +++ b/src/rcon.rs @@ -112,22 +112,16 @@ impl RconClient { .map_err(|e| RconError::Response(format!("Failed to read payload: {e}")))?; let request_id = i32::from_le_bytes([payload[0], payload[1], payload[2], payload[3]]); - let packet_type = i32::from_le_bytes([payload[4], payload[5], payload[6], payload[7]]); let body_bytes = &payload[8..payload.len() - 2]; let body = String::from_utf8_lossy(body_bytes).to_string(); - Ok(RconPacket { - request_id, - packet_type, - body, - }) + Ok(RconPacket { request_id, body }) } } #[derive(Debug)] struct RconPacket { request_id: i32, - packet_type: i32, body: String, } -- cgit v1.2.3