From 3ebb892a137f26971d4624a8ee4dd2d75b1bfb07 Mon Sep 17 00:00:00 2001 From: Julian Schmid Date: Sun, 22 Sep 2024 13:32:25 +0200 Subject: [PATCH] Resolved clippy warning --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 02b24c6..1852b70 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,7 +126,7 @@ pub const SOMEIP_LEN_OFFSET_TO_PAYLOAD: u32 = 4 * 2; // 2x 32bits ///Maximum payload length supported by some ip. This is NOT the maximum length that is supported when ///sending packets over UDP. This constant is based on the limitation of the length field data type (uint32). -pub const SOMEIP_MAX_PAYLOAD_LEN: u32 = std::u32::MAX - SOMEIP_LEN_OFFSET_TO_PAYLOAD; +pub const SOMEIP_MAX_PAYLOAD_LEN: u32 = u32::MAX - SOMEIP_LEN_OFFSET_TO_PAYLOAD; /// The maximum payload size of an SOMEIP UDP message. ///