From 628fa68e220b82d6aec3af2e0ca3e80d488baa5d Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 17 Oct 2024 17:38:18 +0200 Subject: [PATCH] Update src/codec/mod.rs Co-authored-by: Markus Kohlhase --- src/codec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codec/mod.rs b/src/codec/mod.rs index 3b5f6df..e79e2c3 100644 --- a/src/codec/mod.rs +++ b/src/codec/mod.rs @@ -513,7 +513,7 @@ fn request_pdu_size(req: &Request<'_>) -> io::Result { } #[cfg(feature = "server")] -fn response_pdu_size(rsp: &Response) -> io::Result { +fn response_pdu_size(response: &Response) -> io::Result { use crate::frame::Response::*; let size = match rsp { ReadCoils(coils) | ReadDiscreteInputs(coils) => 2 + packed_coils_size(coils),