Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikssn committed Oct 18, 2021
1 parent 14ce456 commit 1ee934d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl TryWrite for MaybeForwardedMessage {
impl TryRead<'_> for MaybeForwardedMessage {
fn try_read(bytes: &[u8], _ctx: ()) -> byte::Result<(Self, usize)> {
let offset = &mut 0;
check_len(&bytes, 2)?;
check_len(bytes, 2)?;
let msg_type: u8 = bytes.read(&mut 1usize)?;
if msg_type == 0xfe {
let fw_msg: ForwardedMessage = bytes.read(offset)?;
Expand Down

0 comments on commit 1ee934d

Please sign in to comment.