Skip to content

Commit

Permalink
Update src/codec/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Kohlhase <[email protected]>
  • Loading branch information
uklotzde and flosse authored Oct 17, 2024
1 parent 11fc29f commit 4818435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ fn decode_packed_coils(bytes: &[u8], count: u16) -> Vec<Coil> {
}

#[cfg(any(feature = "rtu", feature = "tcp"))]
fn request_pdu_size(req: &Request<'_>) -> io::Result<usize> {
fn request_pdu_size(request: &Request<'_>) -> io::Result<usize> {
use crate::frame::Request::*;
let size = match req {
ReadCoils(_, _)
Expand Down

0 comments on commit 4818435

Please sign in to comment.