Browse Source

Fix clippy warnings

feature_link
Anton Tarasenko 3 years ago
parent
commit
65ef791f00
  1. 2
      src/link/reader.rs

2
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);
}
}

Loading…
Cancel
Save