Skip to content

Commit c604d68

Browse files
committed
Fix pre-commit
1 parent faeb1c2 commit c604d68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codec/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub(crate) mod tcp;
2525
/// As defined by the spec for both RTU and TCP.
2626
const MAX_PDU_SIZE: usize = 253;
2727

28+
#[cfg(any(test, feature = "rtu", feature = "tcp"))]
2829
#[allow(clippy::cast_possible_truncation)]
2930
fn u16_len(len: usize) -> u16 {
3031
// This type conversion should always be safe, because either

0 commit comments

Comments
 (0)