From 65ef791f00536c6b6d90de84ef1a20bc63ddc596 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sat, 24 Jul 2021 02:36:39 +0700 Subject: [PATCH] Fix clippy warnings --- src/link/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/reader.rs b/src/link/reader.rs index 511473d..03bb4ce 100644 --- a/src/link/reader.rs +++ b/src/link/reader.rs @@ -89,7 +89,7 @@ impl MessageReader { self.length_buffer[self.read_bytes] = input; self.read_bytes += 1; if self.read_bytes >= UE_RECEIVED_FIELD_SIZE { - self.ue_received_bytes += array_of_u8_to_u16(self.length_buffer) as u64; + self.ue_received_bytes += u64::from(array_of_u8_to_u16(self.length_buffer)); self.change_state(ReadingState::Head); } }