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 a03b45f commit 628fa68
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 @@ -513,7 +513,7 @@ fn request_pdu_size(req: &Request<'_>) -> io::Result<usize> {
}

#[cfg(feature = "server")]
fn response_pdu_size(rsp: &Response) -> io::Result<usize> {
fn response_pdu_size(response: &Response) -> io::Result<usize> {
use crate::frame::Response::*;
let size = match rsp {
ReadCoils(coils) | ReadDiscreteInputs(coils) => 2 + packed_coils_size(coils),
Expand Down

0 comments on commit 628fa68

Please sign in to comment.