From 48184350d94786afaaaff65a7ebe834f5ed78502 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 17 Oct 2024 17:38:39 +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 337893b..7338a1c 100644 --- a/src/codec/mod.rs +++ b/src/codec/mod.rs @@ -487,7 +487,7 @@ fn decode_packed_coils(bytes: &[u8], count: u16) -> Vec { } #[cfg(any(feature = "rtu", feature = "tcp"))] -fn request_pdu_size(req: &Request<'_>) -> io::Result { +fn request_pdu_size(request: &Request<'_>) -> io::Result { use crate::frame::Request::*; let size = match req { ReadCoils(_, _)