We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dee2bf commit ef8e8cfCopy full SHA for ef8e8cf
src/codec/mod.rs
@@ -25,6 +25,7 @@ pub(crate) mod tcp;
25
/// As defined by the spec for both RTU and TCP.
26
const MAX_PDU_SIZE: usize = 253;
27
28
+#[cfg(any(test, feature = "rtu", feature = "tcp"))]
29
#[allow(clippy::cast_possible_truncation)]
30
fn u16_len(len: usize) -> u16 {
31
// This type conversion should always be safe, because either
0 commit comments